db.mapper.base: use metaclass to validate and auto-register struct_id
db.mapper.base: proper naming of abstract property and minor cleanup
db.mapper.base: remove unused import
db.mapper.base: add shortcut method for en/decoder registration