Issue #1574484 by tim.plunkett, nod_: Replace authorize.js with states.
Merge pull request #284 from Twinmat/JScleanAuthorize

Issue #1574484 by tim.plunkett, nod_: Replace authorize.js with states.