Remove unused imports, whitespace fixes
Move construct_request_json out of models.py
General HTML and javascript cleanup