Added string wrap function
Added padding and wrapping for better chat display of long messages
Ordering by id added to ensure simultaneously arriving messages are in right order