examples/authorize: Kill useless imports; write auth JSON to proper stream.