camlistore (http://camlistore.org/) is a good contender:
- It's an open source software, created and personally (as in, it's not part of the job) maintained by one of the go maintainers at Google
- It's designed to be a personal storage for everything, but there already is a good focus on photos. Check out the demo in the video
- It has a multitude of remote storage already:
- s3
- google cloud storage
- google drive
- any mongoDB you can point to
- It has encryption and synchronization of data and metadata built-in- The storage format is utterly simple
- Unfortunately its installation is still quite spartan, being CLI and all.
I'm following it closely to see where it goes, because it could very well be a final solution for all content management woes.