require https

closes #4
organized imports
some url reversing in templates

rather than hardcoding