don't open by default
add dir middleware
add testcase for directory middleware
0.2.3