add memcached setup

I added memcached to the vagrant environment and setup the proper settings through environment variables. Memcached can also be used during test, since isolation is provided by cache.clear()