Added advance search and updated views

Updated and fixed routes
Added styling for search pages
Added Browse Catalog link
Updated links in search pages
Added login and logout views/links

I'll merge this to master in the morning after I review it when I am not
as tired
Fixed syntax errors in the mailer files.
Added user unit tests.
Merge search branch