refactor requireTree and add support for includeCSS as well as includeJS, with additional options