adding support for index.jade files, and a few other improvements