building up

refactoring path handling
* made every disk writer recursive-create target path (mkdirp) instead of pre-creating
* removed most IO from Context, Paths Config etc
* added readConfig API/Core command
added StatsCounter to some classes
attempt at improving error handling
bumped cache format versions
various small fixes and tweaks
dropped cookbooks files
added cookbooks as submodule
added cookbooks folder