-----------------
* Made lock handling more robust
* Warn if a message can't be encoded with the detected encoding
* Improve MySQL query memory usage by taking advantage of the cursor's iterator
* When querying for available rooms, filter by confserver in the SQL query
* When fetching messages, filter out NULL entries in the SQL query
* Made $HOME the last directory checked for a config file