UI-oriented cleanup

* pretty print all output
* all output uses same functions

Some code improvements:

* share warning function that checks CWD
* inline variables where appopriate
Color the output of install/uninstall
Colorize the upgrade command's warning