Clean up

* clean up Scala code
* uniform behavior: scan all the `Connection` headers, and look for one that equalsIgnoreCase `upgrade`
* switch to proper `scala-maven-plugin`