Refactor project to use SBT and make buildable in Scala 2.10