add connect directory middleware support
Merge pull request #19 from clovery/master

add connect directory middleware support