Upgraded photo.js demo to use new CachingDAO factory signature.