Requests for comment/Data mapper

This RFC proposes adding a data mapper facility to core. Hopefully, this will facilitate domain-driven development and help isolate database access. It is compatible with the recently approved move to a service-oriented architecture. An implementation with tests and examples is provided.