[minor] Implement an API to retrieve the resources for the pagelet.
[minor] Small comment changes.