Changed to use regex file matching after the leading path.
Added extra slash for path.
Removed resource removeal from compiled class as it should now be moved to the controller.js file within the module.
Added replacement of jQuery and jQuery UI files with our own, but only for versions lower than 1.9.