Update React-tools to support transform as object

This change adds an additional function to the exported object to support getting access to the transformed result as an object rather than just a string result - the separate function designed to maintain backwards compatibility. 

This facilitates tools that want the code separate from the sourcemap or anything else as time goes by.
`transform` has all of this code. Let's reuse - `transform` can call `transformAsObject` then do it's additional sourcemap inline.

Also, I'm not wild about `transformAsObject` as a name, but don't know what else I would call it.