To my sad supprise there was not a single good midi mapping for the 4D out there, so together with Tiny, we made a setup for Allen & Heath Xone 4D for Traktor Pro.
It's all there with documentation and everything. Hope you'll enjoy it, and give me feedback if something is not right.
Download from here