General improvements and bug fixes.

- updated git porcelain commands to deal with new output format
- improved comments and output messages
- improved functionality when building for pre-3.0 (no plugins) and post-3.0