Added layouts. Added Request and Response handlers.