Restructured app to seperate model and view

The model and main view are separated into separate scripts and
asynchronously loaded using Require.js. (need to be implemented on
header and settings)

Also fixed css media queries to fix size for iPhone 5 and iPhone 6.