Core/connection: First attempt at a proper threaded, prioritised queue for connection.write().

Signed-off-by: Martin Stone <martin@d7415.co.uk>
Core/actions: Calculate and use priority based on user status, message length and a custom modifier,

Signed-off-by: Martin Stone <martin@d7415.co.uk>
Core/actions: Add priorities to privmsg, notice, reply, alert, invite and kick

Signed-off-by: Martin Stone <martin@d7415.co.uk>
Core/actions: Catch errors in get_pnick during connection.

Signed-off-by: Martin Stone <martin@d7415.co.uk>
Core/connection: Clean up thread on disconnect.

Signed-off-by: Martin Stone <martin@d7415.co.uk>
Core/connection: Increase the antiflood period for low priority messages.

Signed-off-by: Martin Stone <martin@d7415.co.uk>
Core/admintools: New module for adminmsg() function. Broadcasts a message to all (online) admins listed in merlin.cfg.

Signed-off-by: Martin Stone <martin@d7415.co.uk>
Core/connection: Warn admins on excessive message queue length/delay.

Signed-off-by: Martin Stone <martin@d7415.co.uk>
Core/connection: Move warning parameters to merlin.cfg.

Signed-off-by: Martin Stone <martin@d7415.co.uk>
Core/admintools: Move imports into the function declaration to enable use in Core/connection.py

Signed-off-by: Martin Stone <martin@d7415.co.uk>