Add cURL & memcached

Updated to use cURL instead of file_get_contents where available and use
memcached instead of memcache.