Detect authentication requirements automatically, using a new auth mode. Related: #367 buttercup/buttercup-desktop#1290