Cleaned up output redirection.
Added pip and virtualenv installation.
Added bash history settings.
Cleaned up profile platform independence.