Added memcached and some small fixes.