Templating, unique conf. location, PEP8

This set of commits is oriented towards more robust code, including
- Better path handling
- Separation of html & python code
- Less code repetitions
- Following common style guidelines