Added DBEncoder and DBDecoder interfaces, and a Serializer<DBObject> implementation that uses them.