Guard against exceeding memcache size limits (Bug 781993)

This patch for mcclient.py adds explicit encode/decode methods for both keys and values.  They provide a convenient hook to implement size-limit checking as described in https://bugzilla.mozilla.org/show_bug.cgi?id=781993