Rewrote bash prompt to be a bit more manageable.

Also Added support for virtualenv and nested shells