VOL-1387 : Fixed issue introduced with watch mechanism submission

- Added flag to determine when a revision is watched
- Added flag to determine when a revision is stored
- Refactored confusing method names for Set/GetChildren
- Fixed issue with deletion of devices due to previous submission

Change-Id: I68c46951f9d40d47e4e74854bba449c9fec4a427
diff --git a/db/model/revision.go b/db/model/revision.go
index 0a58ccd..51f7a1a 100644
--- a/db/model/revision.go
+++ b/db/model/revision.go
@@ -20,8 +20,10 @@
 	SetConfig(revision *DataRevision)
 	GetConfig() *DataRevision
 	Drop(txid string, includeConfig bool)
-	SetChildren(children map[string][]Revision)
-	GetChildren() map[string][]Revision
+	SetChildren(name string, children []Revision)
+	GetChildren(name string) []Revision
+	SetAllChildren(children map[string][]Revision)
+	GetAllChildren() map[string][]Revision
 	SetHash(hash string)
 	GetHash() string
 	ClearHash()