moved code to build a new Query out of controller and into model; changed minimum threshold for query hit to 0.1
added login and logout and improved styling a little bit
links now open in new tab/window