Make listen address and port configurable

In settings.py set variables MAIN_LISTEN_ADDRESS and MAIN_LISTEN_PORT to
0.0.0.0 and 5000 by default, and CROWD_LISTEN_ADDRESS and CROWD_LISTEN_PORT to
0.0.0.0 and 5001. Also use these variables to construct DOMAIN and CROWD_DOMAIN
variables.