Improves parsing for protocol description syntax.

- Adds new errors for various invalid cases.
- Renames things to separate irc protocol from protocol file syntax.