Implement cheatsheet as separate plugin

Reimplement cheatsheet as a separate plugin. Also fixes two other minor issues.