Move configuration loading to separate file

We don't have a lot of options in the configuration file but parsing it
still involves a lot of code that is currently located in app.py. We
should move it to a separate file so that it doesn't add too much
complexity and clutter to app.py.

Signed-off-by: Marcus Karlsson <mk@acc.umu.se>