Updated the authentication methods to work with the new authentication system.

Also moved some important URLs into a resource file so they're easier to amend in the future.