Added the first working implementation of switches. This includes
an abstraction around raw input reading of a switch and a simple
polling class that updates everything.