Easy unit tests

Hi Micah! This is a pretty cool project. 

Here's a first cut at some unit tests covering the easy stuff. To get at the real functionality, I'll need to extract some functions from `main()`. Any objections or advice there? I'm working on some splinter/selenium tests for the stuff in #22, as well. Feel free to merge this now, once the functional tests are done, or never—just wanted to open up a conversation on testing.