Fix #1025: Turn the sbt plugin into an AutoPlugin.

Note that we cannot use the AutoPlugin in our build itself,
because we need the *abstract* set of settings. However, the
AutoPlugin is tested in sbt-plugin-test.
Merge pull request #1303 from sjrd/autoplugin

Fix #1025: Turn the sbt plugin into an AutoPlugin.