Added a mechanism to stop buggy SQL connections from slowing down the server.
Fixed numerous bugs.
Modified a big portion of the messages sent to administrators when there are errors, to help people resolve issues more easily without the need of contacting the support team.