init: set errno if init has been failed.
Merge pull request #94 from shaitan/tmp

Fixes
v0.22.9
init: fixed possible unintialized errno set
Fixed signed/unsigned warnings
core: added base directory (calculated at start time from cfg.file), use it for getting statistics
stat: run periodic statistics task once per second (it is cheap), but dump it into data.stat file once per @periodic_timeout seconds (it is costly)
v0.22.10
defrag: do not spam logs with 'defragmentation is not needed' messages
v0.22.11
iteration: checks ranges on iteration even if index isn't sorted. Use bsearch for checking if the key from ranges.
stress: added tests for iteration: out of ranges, part of ranges and full range.
Fixed typo. Extended comments.
stats: updates total size of blobs on write_prepare.
eblob_check_free_space use this stat for determining that blob_size_limit is reached.
Merge pull request #95 from shaitan/stress

Added iteration tests to eblob stress.
index: always generate sorted index for all but the last blob at the start.
stress: indent cleanup, get rid of unused variable
v0.22.12
index: bctl->sort must be set before filling index blocks
v0.22.13
flags: added EBLOB_AUTO_INDEXSORT:
if the flag is set - eblob will force sorting blob's index right after the blob is closed.