Expose resources via resource factories. Various resource improvements.