Fix generation of route path for controllers.

Fixes #12
Flake8 fixes
Update dependencies