url format rewriting; /thing.json -> /thing with accept json