Added testing for the middleware.
Finished testing the views.
Added a requirements file.
add runtests script and clean up unnecessary files