Fix debian package building mechanism

This comit makes it possible to build debian packages using
dpkg-buildpackage. This fix is a kind of workaround -- it makes
it possible to compile and install the sources using the same
commands as when using autotools, but actually uses cmake build
system. It is still experimental, ie. not tested very well.
Fix debian package building mechanism

This comit makes it possible to build debian packages using
dpkg-buildpackage. This fix is a kind of workaround -- it makes
it possible to compile and install the sources using the same
commands as when using autotools, but actually uses cmake build
system.
Pull request: https://github.com/lizardfs/lizardfs/pull/77
tools: Fix conversion numbers to human readable IEC format

Function 'print_humanized_number' has been refactored.
In addition there was a bug for 'IEC' format conversion:
Old function was returning e.g.: '1.0KiB' for '1023' bytes..
The bug was a result of using always '1000' as a 'base'
for both 'SI' and 'IEC' rounding. The 'base' should be accordingly:
'1000' and '1024', even for rounding.
tools: fix includes' alphabetical order
Copyright and authors update.
Merge pull request #88 from aNeutrino/authors_update

Copyright and authors update.
Merge pull request #87 from camelon/fix_order

tools: fix includes' alphabetical order
unittests: Fix mycrc32_combine unit test

Unit test for 'mycrc32_combine' did not checked 'MFSBLOCKSIZE'.
It was producing 'segmentation fault' for 'MFSBLOCKSIZE' lower than '65536'.
In particular using: 'cmake -DENABLE_LIGHTMFS:BOOL=YES' is using 'MFSBLOCKSIZE=4096'.
common: Fix wrong index calculation for pointers array

There was a possibilty of too big index usage.
it was reported by 'warning: array subscript is above array bounds'
mount: Fix segfault in oplog_printf
master: Make the master start faster with empty metadata

This change will make short tests much faster, because mfsmaster without
this patch doesn't accept connections for up to 10 seconds after it was
started (look at the "starting" variable in matoclserv.cc).
master: Set minimum chunk loop time to 1 second

This makes it possible to set CHUNKS_MIN_LOOP_TIME and
CHUNKS_LOOP_TIME to one second in tests and during
development to speed up chunk operations.
tests: Introduce functional tests

This commit intruduces a testing framework for functional tests
of the filesystem together with some simple tests. The framework
allows users to create tests (in Bash) which setup the whole installation
consisting of many chunkservers and do some checks using it.
cmake: Use -std=c++0x instead of -std=gnu++0x

Old flags didn't work with clang. Now both gcc and clang work fine.
cmake: Reorganize build options

This commit makes usage from CMake 'option()' keyword for boolean build options
to make it straightforward and to work better with IDEs (KDevelop in its
interface can change them using checkboxes).
String options have also their values printed to be sure that build's
configured properly.