Fixes related with captive portal exceptions

This does not have only fixes in captive module but  also fixes/expands two iptables helper methods in services and objects module