Fixes issue #320: Module::createController() will fail with a route with trailing slash.
Merge branch 'master' of github.com:yiisoft/yii2