Improved message input

Use raw_input which will allow GNU readline if available.
Retry send option on message sending failure