Initial work on edit API.  Sort testing.