Add AuthMode class
Add credential class
Require auth mode and credential classes
Add auth_modes to gateway class, refactor indentation
Add auth mode name
Add auth modes and credentials tests
Parse credential safe field as boolean
Add a remote test for auth modes