[TIMOB-16153] Fixed pre-hook callback function signature and function ho...

...ok return args. These changes will break Titanium SDK 3.2.0, so I added a fix just for that.

This also resolves TIMOB-15735 CLI: New 'cli:go' hook to manipulate incoming arguments.