build with sbt, run examples with JUnit, some tweaks & additions

(see individual commits for details)