changing how middleware is applied to ensure it runs even when other plugins have defined routes
Merge pull request #21 from nfriedly/middleware-fix

fix to ensure middleware is always applied