Simplify Result to trait. Fix non-exhaustive pattern match.
Switch to sbt-sonatype