Revert "Revert back the behaviour to cleanup all states for 2.1 Fixes #3181 and related to Ticket #1629. This commit is only for 2.1 since on master development will continue for better alternatives"

A bit too excessive need to get right.

This reverts commit c59dd719e0a6d9ee8deecaa7bff0d6ee8c76e4ca.
Ticket #3181 do the state flushing only on down gateway detection rather than any time.
Correct check to match the right vip based on configured ip. Reported-by: http://forum.pfsense.org/index.php/topic,66234.0.html
Allow for easier override on $g values if needed.
Fix #3127

By default htmlspecialchars does not consider single quotes, what can be
a problem when value attribute is set using it. Replace value attribute
set to use double quotes on places where it's obviously recieving a
result of htmlspecialchars() call.
Disable kill_states by default on upgrade, it fixes #3183
Remove failover peer IP settings from DHCPv6, DHCPv6 doesn't support failover the way that DHPv4 did. Fixes #3184
Do not sync DHPCv6, it must operate independetly. Ticket #3184
Test growl whether or not growl is disabled.
Remove unecessary capitalized WARNING from disabled APC message
Fix errant display of "0 table deleted" during filter reload on console.
the time has come - bump to 2.1-RELEASE
Correct typo that prevents dhcp rules from properly being generated.
Correctly check the secondary/primary parameter setting on dhcp failover configuration
Do not include disabled OpenVPN in vpn_networks and negate_networks
Leave a trace that rtsold did fire the dhcp6c client so troubleshooting is easier
Require IPv6.inc header so that if ipv6 functions are called no surprises arise
Update an existing cron entry for pppoe periodic resets

The array variable name was incorrect in the test, so the existing cron entry was not being matched. Fixes #3192
Fix update URL so the -RELEASE version looks at the stable updates URL by default rather than the snapshots server.
Fix didn't help -- backing this out and the change that made it necessary. Revert "Correctly check the secondary/primary parameter setting on dhcp failover configuration"

This reverts commit 24670866827b4e2d7a4a05baaf6d09ee377ce7cb.