Martini middleware/handler for detecting mobile device by HTTP headers