SDK 2.0: custom serialization

Adding the reference to the issue here too: http://www.couchbase.com/issues/browse/NCBC-733