Anonymous Header/Footer

I had to create a new branch because of weird merge stuff. I pulled the important files from old branch (Task-1390) and committing them all here. This is the full anonymous header/footer code. I had to make changes to the logout for everything to work correctly. 

We'll definitely have to implement the javascript error messages because jquery doesn't work with header(refresh..) so I had to change them to header(Location: ..) but that means we couldn't have the pause to display error messages on the page, so currently there are no error messages.