refactor index.js
add initializer for cordova's document ready
load cordova initializers after cordova and move to it's rightful place, services
add device service to check device type