Added some tidied up logic for the cookies stuff so you don't get terrible errors
Tidied up visit_to_dos form to properly use the new db schema
Updated visits controller so it will redirect to the most convenient page