Fix issue with replacing '/' with '.' in partial names.

This will be removed once the Handlebars bug has been fixed:
https://github.com/wycats/handlebars.js/pull/389
Rename `layoutDir` to `layoutsDir`.
Add some documentation.