Restructure to use Flask with FastCGI

- add configuration file for Lighttpd
- use Python 3-style relative imports