add callbacks for all messages

i'm not sure that all of these callbacks (or parameters) are valid for
clients, but they're all there for now for completeness
fix a warning