add tests for folder & bugfix

addition of tests for the folder
fix callback naming in async discern
in case of an error, the callback now returns the error object
make folder.sync work like node's sync api
Merge pull request #4 from ForbesLindesay/tests/folder

Tests/folder