feat(router): add optional HTTP to HTTPS redirect

replaces #2635 
Ah, I see what you mean. This should be moved a couple lines lower into the app directive as I don't think this will work as-is (haven't tested yet)