Change check cookie to update since goal is to extend expiration

* Move request.host inside get_cookie_domain function
* Catch specific exceptions to delete cookies with invalid uuid (ValueError), do nothing for missing cookies (TypeError), and otherwise extend the expiration of cookies
* Changed check_or_set to update_or_set since goal is to extend expiration