Mainline it

Move the `__main__` thing to an actual class that we could maybe almost theoretically test.