Refactor.

Moved the compressionHandler out of the staticResourceHandler. Only a
quick refactor, will continue refactoring the core router next.