Full rewrite of memcached state and execution module

This pull request makes the newly-added memcached state and execution module more "salty". The old states were not actually stateful, and literally just wrapped each of the functions in the execution module.

Resolves #9363.
Resolves #9093.