Improved error handling for config

Signed-off-by: Mats Liljegren <liljegren.mats@gmail.com>
Moved logging to its own module

Signed-off-by: Mats Liljegren <liljegren.mats@gmail.com>
Added .gitignore, ignoring .pyc files

Signed-off-by: Mats Liljegren <liljegren.mats@gmail.com>
Made file configuration handling a separate module

Signed-off-by: Mats Liljegren <liljegren.mats@gmail.com>