Ensure that the rack middleware is at the top of the stack, refs #4