fixed extra margin in header area, changed rules for theme so it shows o...

...n all relevant pages and fixed minor bugs in javascript code.

We played around on the dev site today and noticed some things that needed to be fixed. I fixed the extra margin in the header so now the search form should align with the logo. We also noticed that there was no theme on the .../login page, so we made some changes to the rules that specify on what pages the theme should be activated. While doing that we noticed that some of the javascript was messing with the login form, we fixed that and moved most of the javascript code to a new file.