Added view routing to all pages

Added routes to all 10 pages in views.py. Also added flask's template
functions to all of the html pages so that they are generated properly.