Factored out some html into other django templates
Moved javascript for displaying ui elements, ajax, etc. to an external file.
1. Refactored django templates; moved code to other files.
2. Removed a lot of temporary/experimental code.