Indented all scripts into __main__.

All helper scripts' logic is now inside a __main__ block,
so that the bytecode can be precompiled.
Refactored custom tools out of repo/cpp.py

Custom tool functions like re2c() and protoc() are now
implemented as monkey-patched mixins at the class level.
Moved qt interfaces from repo->pynja