Added maintenance mode handler to ridoku.