add apiMode to settings

apiMode toggles between sending 300 redirects and 204/401 status codes

update README.me to describe `apiMode` option