Base resource struct

Add's a base Resource type to Root and PullRequest.