Set up cordova and refactored directory structure