Added more robust scala build to allow for future clean releases, and publish settings for later integration. 

Added more robust scala build to allow for future clean releases, and publish settings for later integration. 
We can get rid of this completely. I checked the intellij idea scala plugin can import sbt project fine. No external plugin is needed.