[fix] Updated development server URL and fixed a bug in authenitcation

Was checking for a hard-coded path suffix, now we consider a redirect
to be a redirect back to the API root.