Fix interface selections on UPnP to show the customized descriptions entered by the user. While here, add an external interface selection knob. Fixes #3141
Ticket #3139 try to detect if the popen is closed from an error
Force apinger to write the status file before getting gateway status
Fix check for existing IP Address in DHCP mapping

Even the Error message says: "This Hostname, IP or MAC address already exists." the IP Address was not checked if it already was given to a client as static mapped
Conflicts:
	usr/local/www/services_dhcp_edit.php
Add a parameter, off by default, to expand all alias items, including hostnames
Make sure an alias is not used by a static route before delete, ticket #2941
Do not allow to add nested alias containing FQDNs when current alias is used on a static route, ticket #2941
Fix checkes for nested aliases containing FQDNs on static routes. It fixes #2941
Declare globals as global before defining them in openvpn.inc
Remove prior CSC entry when cleaning up. Fixes #3143
Fix double-click to edit on OpenVPN CSC entries
Relax advanced options firewall rules tests

Various advanced options are now possible for any protocol since https://github.com/pfsense/pfsense/commit/653bde345e8f960de5bc745fe74e64d8ef3fd2d3
So allow these through the front-end GUI validation also.
Code change for 2.1 branch.
Merge pull request #774 from phil-davis/RELENG_2_1

Relax advanced options firewall rules tests (2.1)
Use pfSense module functions for finding interface v6 addresses. The addresses will be not in friendly format as returned by getnameinfo
Cleanup some code that is not needed anymore
Synchronize dhcpv6 as well if dhcp sync setting is on. Reported-by: http://forum.pfsense.org/index.php/topic,65487.0.html
Also take dhcpv6 into consideration even here.
Improve sh syntax using ${} for all variables
When renaming or deleting a virtual server, clean up the old relayd anchor name. Otherwise the rules are still there and valid, and will cause problems as they will override the new VS settings. Also clear out the anchors when stopping relayd or starting fresh that way no old settings could conflict.
Unbreak limitrules and probably pfblocker errors. Spotted-by: Jim