Stop the ready function being called twice
Generalise the document watching facility

You can subscribe to documents, storing the prefs for which
document you want to read on Google Drive. Whenever you log
into a computer it will read those preferences in that
domain, and pull out readers for the data.
Move preferences file to hidden folder in Google Drive

We've got app folders, so we might as well use them.