Abstracted networking away. Much cleaner and easier.
Forgot an important comment.
Small changes to sendmessage