Refactor plugin setup a bit, and start with simple authentication