Restore basic API authentication functionality

This request merges the API changes made in https://github.com/mocleiri/github-oauth-plugin/pull/30 with the latest official Jenkins plugin.