Refactor Auth

Make the API more like a typical REST program.