Refactor auth-related methods to use v2 API
ignore duoauth.json and test.php