Jbau/fix/remove revision from middleware

@singingwolfboy 

here is a version that actually just removes REVISION from middleware.

Done in 2 commits because Stanford already installed the first commit.

MERGE THIS OR #1638, BUT NOT BOTH.

@wedaly @e0d @jarv FYI.  Does this break anything used for devops or testeng?