add basic messages and register their handlers.

(Also a lot of TODOs for the functionallity of the messages.)