remove unused imports
refactoring: centralized options parsing; don't pass Twisted request to renderers