Set configurations from environment variables.

Update Flask configurations from environment variables with prefix FLASK_.
Document environment variables of libpg. Remove the configuration file.
Update the test and the example configuration files.
Open database connections per request.
Add --timeout parameter to the worker.py.