custom_mapper

Custom mapper support.

It is rough dirty draft solution made just for discussion. Please, DO NOT merge it.
there are many places where `own_mapper` is used in the code, I keep it for backward compatibility, since it should be carefully refactored.