Move crossbuilding and crosspublishing from Travis to sbt.
Fix small bug in bash script.
Fix junit dependency.