Use memcached

This provides an option for using memcached instead of redis, to make the life of @jdotpz easier.

@toolness to review