Support sourceMap generation

This introduces support for sourceMap generation from the plugin. Please see the comments on the diff for implementation details.