significant cleanup of the rtmidi xtm api

still a work in progress