scripts to optimise js output
Updates to make requirejs optimization work

- log when mobileinit event has been bound and when triggered
- unfortunately, had to make changes to jquerymobile source. Had to add
jqm.config as part of the definition.
- removed unneccessary shims (getting a better understanding of shims).
dev mode & cache manifest support

.env var used to toggle dev mode on/off. This toggles support for cache
manifest as well as optimized js.