Some cleanup
Some Future support and ->logout method
Updated simple-send script to use futures

Also closes the connection cleanly now.
Cleanup