Refactor Build.scala, add javahg resolver in plugins.sbt