Set up build and test infrastructure. Fixes #2.