Check for mandatory environment variables on startup

Some environment variables are mandatory for the container to work properly.
Those variables are now checked on startup. If a variable is not set, a message
is logged accordingly and the container exits with an error code.

Closes #2.