I have been maintaining a PDF library this way using GoodReader for about 10 years now. You can connect it to most cloud storage services or any SFTP or WebDAV server, and sync annotations with Acrobat, Preview, Okular, etc. on the desktop. I have still yet to find something this good for HTML or EPUB documents.