Replace manual APC cache-invalidation with Memcached

Per #516.
We no longer need the APC_RUNNING constant

Closes #516.