clear cookies before in the login view controller

make sure after checking for basic auth we clear cookies. one schools login page
access was failing because of the basic auth check.
Merge pull request #140 from derrh/master

clear cookies before in the login view controller