Support index pages

When resolving templates, if it can't find ```path```, it should check ```path+'/index'```, just in case.