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