There's an automatic "Bone Roll" recalculation in Blender 2.66.1 and with more options in Blender 2.90:
1) Blender 2.66.1 (aligning "Bone Roll" with "Global Z!")
2) Blender 2.90