Bugs fixing & add nodeunit as a unit test middleware.

1. Fix RuleRouter middleware reuse bug.
2. Fix mongodb service connect bug.
3. Rename winston to logger.
4. Add node unit as a middleware.