Refactoring of the build process to publish artifacts.

The build process is much cleaner now. And it can
produce and publish artifacts for the compiler and the
Scala.js library.