message: Standardize docs. Remove dead code. Make comput_*_id a static method.

Also change the use of compute_*_id method in Messenger.