more bash_prompt goodness

- use __git_ps1 from git-prompt.sh (git core)
  + dirty/untracked/detatched head
  + show sha
- inline all functions for speed
- update colours