Remove RequestContext from edit.php and fixDoubleRedirects.php

Change-Id: I9388e6b3fec3c8ea92099aeaf010dd067f62a20f