Gulp Compatibility

Enables really convenient syntax for using with Gulp.js.  Allows for all of the same options.

Had to move the main function outside of index.js in order to avoid a circular reference.  So, instead of

    module.exports = function(....

it is now

    module.exports = require('entry.js');

... where entry.js contains the same exact original function and dependencies.