custom_mapper

Custom mapper support.

It is rough dirty draft solution made just for discussion. Please, DO NOT merge it.
I found a better solution for getting mapper class::

        if hasattr(cls, '__mapper_cls__'):
            mapper_cls = util.unbound_method_to_callable(cls.__mapper_cls__)
        else:
            mapper_cls = mapper

The same code is used in sqlalchemy