Initial refactoring of views.py

- index, university, course and module view have been refactored to use common code now implemented in the dbHelper.py file which also reduces repetition of code
Merge branch 'master' of github.com:emivulpe/TEAM-H-RateThisCourse
Finished refactoring views.py

- Most functions are now similar in structure and some code repetition was removed. However it could probably be further refactored.
Added ajax login capabilites

- You can now log in using the ajax post request in the function with handlers, allowing for a modal box to be used for signing in instead of a dedicated page
Merge branch 'master' of github.com:emivulpe/TEAM-H-RateThisCourse