board.expand_url: Use werkzeug to get host_url

Includes port number now
cli: Get env vars from env, simplify everything else

Now commands such as rebuild_cache can be used from commandline, and
display a useful help message when there are missing environment
variables
Bunch of improvements to install docs