Martini handler for mapping and validating a raw request into a structure.