Fix large sends in the JavaScript CloudI API. Add a javascript version of the msg_size integration test.