I don't rig much so I am not sure how the world space / local space effects joints so I cannot really comment. I did not notice you were working with joint orientation.
Someone more experienced with rigging will hopefully chime in on what are the best practices for joint orientation.
"If I have seen further it is by standing on the shoulders of giants." Sir Isaac Newton, 1675