Add resource and action metadata

Provides `_resource` and `_action` properties on all resources. You're welcome, @ifandelse :smile: