Adding optional memcache support.
Merge remote-tracking branch 'origin/master'