Add apc cache class

This class uses, if available, the apc functions for user cache entries.
APC is much faster than memcached and used for speed optimization on many servers.