Add several methods to support switching to/from and connecting to TCP mode devices. Closes #17.