Optimise static resources

Optimises the javascript and CSS for the application and places it in 3 files as follows:

/main.<VERSION>.js
/app.<VERSION>.js
/app.<VERSION>.css

The version number is included to avoid cache issues.