Cookie and Logout fixes

Move up fix to how cookies are saved when using localhost:<port>.  
Move up improvements to logout functionality.