Default extension in directory handler

Add a `defaultExtension` setting for the directory route handler