Bug 843910 - Expose document state changes via observer service r=mrbkap