Squashed commit of the Enabling local publish for pants build. Issue-46: Cherrypick 64b54c04 from twitter/commons