Add a mandatory 'id' attribute to 'resource' elements

This is now required by api-site.

Change-Id: Ifdfd80060cb294ded92c99743c371ae22df933b7