change a couple except Exceptions to except BaseException
when resolving URLs by following redirects, cache results in memcache

fixes #63