Move AuthConfig to goptions
Refactor setupAuthApps
Implement BasicAuth for API