Introduced async functionality

Using callbacks, this makes just more sense than having fs.*Sync
functions everywhere in the code.
Renamed directories

Folders with an underscore in the name do not automatically get moved
into the _public folder
Adapted test to changes