moved phonegap orientation detector to cordova module
removed the need for waiting for cordova to be ready manually