First implementation of memcached.

If enabled, try to use it. Otherwise continue as always.
Changelog for the next release.