Merge pull request #36 from rrthomas/master

Add ensureDir; make mkDir complain when directory exists
Obligatory formatting/wording fixes
Implement readDir in REST back-end

Refactor request code for readDir, getMtime and pathExists into
_readPath and _readPathSync private functions.