Integrate Context into Transform.

Keeping this in a separate file is problematic due to dependency resolution in RubyMotion as an inherent circular dependency between the scopes.