Fix sbt-release (use newer sbt-release)

Few other fixes:
 - run clean before tests
 - write changelog to a local file

This can go in for version 1.3.1.