Added basic Contao 3 support

I've only had to do minor adjustments for Contao 3. Obviously I have not tested all features, but the navigation worked fine for me.