[lxc]: support up-to-date lxc-ps versions

Since lxc 0.8.0 lxc-ps has enforced the '--' option on ps args

https://github.com/lxc/lxc/commit/a3812bf0c756029b0c7b8e3ca74c57728a791ab1

Also update the script to query for the lxc name directly rather than attempting to get all processes (which is deprecated)
Fix ldirectord failed to start, sockaddr_in6 redefined error.

Perl Socket and Socket6 modules both implement, and export by default,
several identical symbols:
    perl -we 'use Socket; use Socket6;'
    Subroutine main::pack_sockaddr_in6 redefined at /usr/share/perl/5.14/Exporter.pm line 67.
    Subroutine main::unpack_sockaddr_in6 redefined at /usr/share/perl/5.14/Exporter.pm line 67.
    Subroutine main::sockaddr_in6 redefined at /usr/share/perl/5.14/Exporter.pm line 67.

Even though this has been the case for a long time already,
somehow this apparently started to confuse ldirectord.

See also: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=675913

Fix this by explicitly requesting from Socket6
only what is actually used.

Closes #365.

Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
Merge pull request #360 from macmenot/patch-1

[lxc]: support up-to-date lxc-ps versions
High: fs-lib.sh: Fixes failure to unmount local fs when process runs with cwd inside fs mount

Resolves: rhbz#1051115
Merge pull request #371 from davidvossel/master

High: fs-lib.sh: Fixes failure to unmount local fs when process runs wit...
High: VirtualDomain: Fixes parsing domain name from xml file.

If the domain xml is not generated by virsh, it is possible
VirtualDomain will not be able to detect the domain's name
from the xml file.  This is a result of the parsing command
not taking into account trailing whitespace characters.
Low: nfsclient.sh: Add 'sec=' as a valid exports option

Resolves: rhbz#1019931
Merge pull request #374 from davidvossel/virtdomain-parse-fix

High: VirtualDomain: Fixes parsing domain name from xml file.
Low: CTDB: Detect default persistent database directory
Low: CTDB: Ensure logfile directory exists so CTDB can start
Low: CTDB: Updates to long description text
Merge pull request #375 from davidvossel/bz1019931

Low: nfsclient.sh: Add 'sec=' as a valid exports option
High: VirtualDomain: Attempt to determine vm status even when libvirt is unavailable

When pacemaker does probe operations, VirtualDomain returns
errors when libvirt is not available.  It is possible to determine
if a virtual machine is running without libvirt. This patch
introduces this logic for qemu virtual resources. Additional logic
must be used to extend this functionality to things like lxc though.

Resolves: rhbz#1054327
Merge pull request #373 from davidvossel/virtdomain-wo-libvirt

High: VirtualDomain: Attempt to determine vm status even when libvirt is...
High: apache.sh: Add ability to set custom httpd binary

Resolves: rhbz#952132
Merge pull request #376 from davidvossel/ctdb_fixes

CTDB updates
Update default value for best_netmask

When best_netmask is set to INT_MAX the netmask and broadcast
address is calculated incorrectly.

Closes: #380
Merge pull request #381 from rmoe/fix-best-netmask

Update default value for best_netmask
VirtualDomain: avoid running "virsh uri" if hypervisor is set

Recent efforts to make this RA independent of a temporarily stopped
or blocking libvirtd missed the unconditional call to "virsh uri"
use to determine the hypervisor default. Since
OCF_RESKEY_hypervisor_default is actually not used anymore, we can
invoke virsh uri directly when setting OCF_RESKEY_hypervisor, but
only if the latter isn't already set.

Thus, users can avoid the superfluous "virsh uri" call altogether
by explicitly setting the hypervisor RA parameter.
VirtualDomain: check process table for qemu-system-* too, not just qemu-kvm

The Qemu/KVM process name "qemu-kvm" is deprecated; qemu-system-<arch>
is now the preferred binary name. Some distributions only support the
latter. Expand the regular expression in monitor to support both names
when grepping through the process table.

Use an extended regular expression to test for both qemu-kvm
and qemu-system-*; the -E flag is specified by POSIX.