Add support for identifying a git detached head

When working with remotes, it is nice to be able to detect/display when you are in a detached head.  This change should address that.

Side note: this is a sweet implementation of powerline-bash!