Bundling and minimisation now work

With the exception of the custom javascript per page. Bundling and
minimisation does not seem to like namespace in js, e.g.
var Users = Users || {};