Add ability to clear ECS changes.

You can now clear the changes staged in the ECS and have them removed from the database.  Note: this does not include config-changed entries in the ECS: that will be a future branch.
(trivial) it would be nice for minification if these db.xxxxx were stored in vars