There's a standard used in content management systems that's been around for, I think, over twenty years - JCR, or Java Content Repository.
I know this is about an OS and not a CMS, but it seems storing your documents in a repository like this would be useful - not sure about the rest of the OS though.