Refactor config API.
Remove memcached support.