Refactor Lotus::Middleware

Ensure that we clean test fixture temp folder
This avoid spec failed spec with full_stack test
Merge pull request #109 from joneslee85/minor-refactor

Refactor Lotus::Middleware