Added option to memcached db queries. Also falls back to file caching

This will use memcached to cache queries.
Can also fallback to file cache.

To enable:
../config/database.php
 $db['foobar']['cache_mc']=TRUE;
 $db['foobar']['cache_mc_time_sec']=10;