Implement memcache cas and gets commands. Fix freeing uninitialized get parameters.