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