Use crosspaths. Add stampVersionAndPublish command.

Using crosspaths does not invalidate compiled class files when
switching between scala versions.

stampVersionAndPublish is useful for cross-publishing stamped versions.