Add support for custom base controller
Refactoring and tests
Merge pull request #1 from mjaneczek/master

Add support for custom base controller