Fix url helpers on mountable engines

This is a rebase of #191.