Added custom git branch parser.

Replaced `__git_ps1` with a better function, from the following website:
<http://joefleming.net/2012/05/24/git-info-in-your-bash-prompt/>