I've released a new Addon: Bone Layer Manager.
What the script does:
- set name of layer
- select bone on layer
- lock bone on layer
- move bone to layer
- automatic creation of bone group of the bone in the layer with random color assignment
- select the protected layer for the link exportation.