Support to re-route Ti.API.log
fix to support the `require` being a property of an object
merged github PR changes
merged from master