Martini middleware/handler for redirect based on environment variable