add apiMode to settings

+ apiMode toggles between sending 300 redirects and 204/401 status codes
+ update README.me to describe `apiMode` option
+ version bump to 0.4.5

support apiMode in additional unauthorized scenario