Added `tag` command and did some dubious refactoring.
Added `note` command.
Added `info` command.
Refactored into modules.