Merge performance enhancements from Ambal-master
Renamed Dictionary::getLong/setLong to Dictionary::getInt/setInt
Fix buffer overrun issue in ThreadedSocketConnection::send() method