Can build scripts into a single minified file

@gtrogers
@maxfliri
Restore check for d3 support

@gtrogers
@maxfliri
Run r.js before assets:precompile

@maxfliri
@gtrogers
Reference production.js when running in prod

@maxfliri
@gtrogers
Disable dynamic detection of baseUrl

@pbadenski
@maxfliri
Fix check for production env

@maxfliri
@pbadenski
Force inclusion of controllers before bootstrap

@pbadenski
@maxfliri
Serve compiled javascript if available

@maxfliri
Exclude licence comments from compiled javascript

@maxfliri
Exclude d3 from optimised build

@maxfliri
Restore dynamic detection of baseUrl

@maxfliri
Precompile and serve d3 in production mode

@pbadenski
@maxfliri
Fix fake API

@pbadenski
@maxfliri
Merge branch 'master' into script-optimisation-fixed
Remove application.js - no more in use

@pbadenski
@maxfliri
Rename config.js as main.js

@pbadenski
@maxfliri
Ensure controller is loaded after fakeapi if used

@maxfliri
Don't load fakeapi for jasmine tests

@maxfliri
Initialise require on document ready

@maxfliri
Merge pull request #60 from alphagov/script-optimisation

Script optimisation