Added secure redirect middleware

But you haven't pushed this yet? I don't see it anyways.