Simplified conditions and used porcelain git status.

Also removed the timing and prompt assist from the git logic.
Added default variable settings.
Corrected the prompt handling.
Patched up detailed git implementation.