Handle request ID in core

this will automatically provide the variable $reqId each time a
GET/POST with the variable id comes in