Add referenced files (not just the 1st degree references)

* also make the edit/update events more robust by ensuring an update is
sent (vs. an edit) when a file is loaded for the first time