Add option to specify index_page

Fix redirect to index_page creation for subdirs

Redirect attempts to access directories to index_page

Add tests
Merge pull request #631 from arr2036/master

Fix redirects to index_pages for subdirs