Adds authenticatio via a cookie(grumble grumble) for #42. Adds #45