Bug 987487 - [Gaia] [Build] Refactoring webapp-optimize.js and unit tests

https://bugzilla.mozilla.org/show_bug.cgi?id=987487
I'm amazed we have all the following optimizations (embededGlobals+inlineJSResources+inlineCSSResources) for just one html file: net_error.html! :s