Add docstring
Cleanup: Import just what we need

Arrange this to reduce the references to siteconfig, in order to ease a
little the task of dropping djblets siteconfig.
Cleanup: Do not use baseurl's l here
Cleanup on template dropped by Evernote