Fixed an issue with Memcache, also added commands and started some tests.
Fixes to make this PHP 5.3+