Change this to an app instead of a bunch of scripts

Incorporate orderBuilds as well.

This should now work from invoking the patchScripts.sh. Usage can be seen in that file, either
by looking at the source or on the command line.
Bug squashing

Tons and tons, we are moving here.
Fully abstract IPC file. Fix some bad param passing.

Still pretty rapid internal development, sprry for bad commit message.