Wireless API

Abstracted the wireless terminal interface, and moved into API.