Print debug messages only when debug is on

Signed-off-by: Jan Losinski <losinski@wh2.tu-dresden.de>
Enable reverse proxy only when set to True

Signed-off-by: Jan Losinski <losinski@wh2.tu-dresden.de>