[BUGFIX] Allow sending large app arguments

Application arguments (headers in general) are limited to 2048 bytes. The work-around is to send them in the body of the message with a content-length header. This commit makes the stream check the arg length and make this switch transparently.