sets up phpunit testing framework #22

added some initial tests that are failing right now, but there are
some TODOs marked. it looks like mocking the web interface is now
necessary to proceed.