added mapCommand, unmapCommand APIs

I thought this would be a good contribution to the API in that it adds functionality much like RobotLeg's command, event bus paradigm.