Add interface for ResourceManager

Adding an interface for the resource manager makes things a little nicer for extensions that want to override/replace the resource location process.