Add separate Resources.php

Change-Id: Ie02fbdd1bb8a1c83f66eacff8de0ca0bd6c67ab4