Add support for generic Route types

This was introduced in django rest framework 2.4.