added out-of-bounds check for datafile writing
changed compaction procedure

first determine total size for target compaction file, after that perform the actual compaction
this should fix a problem under Windows where ftruncate is not called
some more explanation for the bind parameters
Merge branch 'devel' of https://github.com/triAGENS/ArangoDB into devel