Made a lot of fileoperations async, added prerequisites filequeue and mkdirp to make it work