Implemented layouts

Implemented layout files
Removed oo-native-ext dependency
Fixed exception with non-existing output directory
Only text documents (.txt, .md, .htm, .html) are now considered
"documents"
Updated example