Add request type.

Last changes to legacy code.
Include config.

Last changes to legacy code.
Process incoming requests.

Last changes to legacy code.