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