Merge pull request #628 from arr2036/fix_titles

Fix page titles for non markdown formats
Add option to specify index_page

Fix redirect to index_page creation for subdirs

Redirect attempts to access directories to index_page

Add tests