Rewrote the _transform and added a temporary cache using LevelDB so that we can resolve some of the object references while in the transform stage.