Included support for requirejs. Generated templates can now be wrapped using a require statement by setting the requireDeps option