Updates for build and lib sub-project

This splits the build out into a main project and a library sub-project (to make it easier to write scripts using the library). There's a few other minor changes, including updating to sbt 0.13.7 which supports removing the blankies from build.sbt.