fix bugs with /edit_contacts and new entity methods in JSONAPI