Support single JS resources
DEVELOPER-916 consistently able compression

* use a callback to compress content if needed
Add support for deferred javascripts
Merge pull request #46 from pmuir/DEVELOPER-916

Developer 916