ME: added a handler for non-json and non-xml extensions/formats

closes #477