Updated to quil 2.2, slight code cleanup in core.
Rewrote core in functional style w/ quil middleware

Still need to do the same for menu system.
Menu also works in functional style.

Yay, no more global state!!