Replaced new Date() with Date.now(). Sort outgoing messages on message time and the timestamp it was received.
Fixed messages being displayed out of order when several messages are sent at the exact same time.
Merge pull request #6 from stancarney/master

Out of order message fix