query: add send_switch to Transaction module

Convenience function that looks up the client_id given the switch_id,
and calls send with that.
query: expose query accessor for apps