Fixed issue with oddly escaped JSON objects, and issues with extended mime-types, all discovered while fixing, refs: geomoose/geomoose#37