Add support for publishing plugins to pants.

Reviewed at https://rbcommons.com/s/twitter/r/1021
Sync of https://github.com/pantsbuild/pants/commit/96b8a6c09bf64fb151564ed5501efc814d6f5f84