Jinja2 templates

* Got rid of main.py. Functionality was anyway in view.
* Proposed using jinja2 templates for view & details. If it makes sense, we can tweak the others. 
* I made up some poor variable names - feel free to criticize/propose better names.
* FYI, this also includes the changes proposed in the reindent branch.