Refactored the CMSURLHandler to cache the Pebble Engine

  * Also removed much code duplication
Static resource loading should be working now
Formatted Source Code
Refactored Components