Merge pull request #35 from semirke/dev

IPv6 implementation fixing and database connection to UTF8 setting
 Added 'any' parameter to getFreeIp when recalibrating/fixing ippool

 Fixing/recalibrating called getFreeIp without second parameter so
 it always checked for IPV4 addressess therefore set IPV6 pools full.
Iptables related fixes

  At hypervm start executing iptables -t nat -L causes hanging if
  the nat table is full with unresolvable ips. (With a table updated from
  DROP this could take several hours.)

  vpstraffic openvzlib handled iptables rules bad.
  There was no -j ACCEPT and it could not delete the rules at startup
  so it kept doubling them.
  Also added ip6tables support.
Resolved unnecessary differences between the master and slave install script. Made tabulation better. Removed up2date because yum exists. Made it run off bash. Joined lines dependent on ../../.git .
Formatted <hypervm/bin/common/lxguard.php>. Formatted build scripts. Removed CVS directories.
Fixed Confirm on Power OFF and Reboot also minor changes

HyperVM did not ask for confirmation on reboot or power off as
the buttons were not created with updateForm, but only with update.
Added error messages and exceptions.

Added remaining "any" for IPv6 support.

Added status = 'on' when searching for VPS on Graph drawing as if
someone deleted the data directory then HyperVM failed to draw graphs.
Made iptables FORWARD consistent

Usinig and not usiing ACCEPT target in the forward chain was not consistent.
I decided to remove it from every iptables FORWARD chain rule as it would
overmatch other (user inserted) rules.
Also I replaced -A with -I FOWARD 1 so every matching rule is put in the
beginning of the chain.
Logrotate of lxiptraffic fails

lxiptraffic.log kept growing as in lxfile_mv the return value of
cp is misshandled. (cp return 0 on success.)
Logrotate of lxiptraffic fails

lxiptraffic.log kept growing as in lxfile_mv the return value of
cp is misshandled. (cp return 0 on success.)
Merge branch 'dev' of github.com:semirke/hypervm into dev
Minimal turnkeylinux support

Added preseeding file creating filled with root password.
It'd be nice to enable the user to give app and db password,
but I have no idea how... (yet)
Merge pull request #1 from semirke/dev

Dev - Merge changes
Made iptraffic logging more robust

Find columns from header.
Drop lines with target specified.
Merge pull request #37 from rallias/dev

Resolved unnecessary differences between master and slave install scripts.
Setting root password at VPS creation time

HyperVM did not set the root password when creating an OpenVZ
VPS so I checked the code for that and found nothing.
Inserted
                // 20130722 OA - I cannot see it setting anywhere else at creation time
                $this->setRootPassword();
Fixed shortened number format in traffic monitoring

Because iptables shortens the numbers (kilo, mega etc),
php summed the vales wrong (simply cutting down the suffix).
	 iptables -x does not shorten.
And now in the good file, too...
Merge pull request #38 from semirke/dev

Several fixes
IPv6 Reverse DNS support

  90% development of IPv6 Reverse DNS support with bind.
  Corrected serial stepping to strictly incremental (many servers support only that.)
  Issues, limitations:
	- ipv6 range; dont need it now.
	- would need a correct IPV6 lib, but dont know where / how to place it and
		dont have enough time. Help/instructions needed.
	- ipv6 rev supports netmasking, not here, though. Current implementation
		supports changes only in the last tow nibbles (last byte). So every
		zone is a /112 zone.
Merge pull request #39 from semirke/dev

IPv6 Reverse DNS support