Convert auth plugin from lua to javascript
Since OpenWRT 19.07 JavaScript is used to render luci.
Our auth plugin still uses lua, which requires a compatibility library to function.
This library however makes it difficult to build images for the 4MB flash routers
Edited by Johannes Rothmayr