Refactor of changeset model, some lint errors fixed, tests, and more.