Make all controllers works with monads.
Pass document validation to http layer from api.