Add ResourceLoader support.

Change-Id: I2b6705a68e4b748cf696c7029579332e6a397a13