use associative array for captive portal to prevent confusion, messiness, and abuse
while we're here, send named termination causes
self-explanatory now, no comments needed
Merge pull request #417 from miken32/cp-database-fix

Use associative array for captive portal database