Move publish.sbt to code project, use standard resolvers

Move publish settings out of root directory, since we don't want to publish all sub-projects. Use standard resolvers to identify Sonatype repository.

I actually needed to make these changes to publish 0.7.0-M1. This PR brings the changes I made properly into master.