Add automatic index detection

Closes #2
Use connect built in dir middleware
Use dummy middleware for DRYness