Add metadata about resources (fix #464)