Aerohive captive portal

Adds support for the aerohive captive portal
At the same time adds support for switch based web form authentication

For review and merge.
if( -> if (  ?

I'm not sure we glue together braces/parenthesis in other parts of the code.