runserver: fix import statement
lifelogd: fix imports and syntax errors
lifelogd: load settings from the environment variable