Protocol command formatting and comments

This adds command formatting functions to `WeeChatProtocol`.

It also adds headers/comments for all `WeeChatProtocol` functions.