added convenience conversion methods for InterfaceOrientation
Docs for orientation signal stuff. Moved orientation helper declarations to the bottom of the file.
renamed getInterfaceOrienation -> getOrientation, added getWindowOrientation to get active window's orientation.