hash urls as key to memcache

rather than using full URLs. There is a limit to the length of a key in memcache,

Also add explicit 404 on base64 data-uri requests, which seem to come from super-old browsers.
These requests cause 500 errors on master.