Bugs fixing and refine middleware usage.

1. Fix auth modules bugs.
2. Add static middleware.
3. Remove wechat feature.
4. Auto load middleware in app.
5. Add module variable while loading config.