fixed a small issue in the main template, added a config file, and fixed /login throwing a ValueError
Merge pull request #4 from Aiybe/master

Added a config file and fixed a couple bugs.