Tuned buffer sizes in Messenger

Added file data buffering in FileReceiver to prevent frequent filesystem writes

Optimized bulk read/write operations in custom streams (calling the single byte
operations is very slow)