Merge pull request #276 from rrthomas/ioobject

Remove useless pathExists calls
Bug #149 in js-yaml closed wontfix, so treat it as a feature
Use rest-fs module to implement red-pill endpoint

Also simplify the handling of the root index.