Fix for [#35238] Blender does not save custom orientations from "view"

Actually more a feature request... Now create orientations operator has an additional option, use_view, when this one is enabled it will use current view instead of active object to create the new space.

Also made some cleanup (made some funcs static).

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56714 954f8c5b-7b00-dc11-b283-0030488c597c