[Engine] Initial implemention of Smuxi hooks (closes: #125)

Supported hook points:
 * protocol-manager/on-connected
 * protocol-manager/on-disconnected
 * protocol-manager/on-message-sent
 * protocol-manager/on-message-received