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

https://bugzilla.mozilla.org/show_bug.cgi?id=987487
Since that doesn't work and it may never be possible to get rid of these files,
may be we should get rid of this code and this `files` variable.