Add support for callbacks to the API

In response to #17, #13, we now have an easy way for you to get your code and sourcemap in separate files