adds shims for titanium, adds a very basic reporter for ti-json, modifies head and foot to save a reference to the native require() function