Added caching using Memcached.
To use, the Memcached php extension needs to be installed, and a Memcached
server must be installed on the host. If not installed, it works the same as
before.
Use the getMemcached() function in connections/connection.php to get
a Memcached object.