Memory allocation and server list fixes

Two big changes and a bunch of smaller fixes and cleanups:

* Stop using PG memory allocation: turns out this is not necessary and it just causes problems because of various bugs in pgmemcache and libmemcached
* Reset libmemcache context when default_servers changes as there is no way to remove servers from an existing context