JENKINS-20797 Use Cause.UserIdCause, not deprecated Cause.UserCause

Switch to use Cause.UserIdCause, this will help build-user-vars-plugin when a release happens. Cause.UserCause is deprecated as well.

Also ignore .idea folder, and fix some javadoc warnings.