Handling memecaptain.com 301 redirects

I guess at some memecaptain started to response with 301 redirects,
I tweaked this to follow 301, and to handle errors a bit better.