Added RestGate

Added RestGate middleware