Add memcached cache backend

And few minor tweaks.