Adding check for memcached support
Wrapped modules in function
Moved memcached addon into memcached dir