Additions and cleanup

Added in a credentials setup in global.
Added a publisher step for Post-Build.  I would have just reused the current build step, but the config would have been lost when updating the plugin.  I am searching for a way to transfer the configuration settings to the post build step, and will update if I find it.

Some clean up for variables and functions.