Add @ResourceId

By default an object's id field is treated as the resource id. The @ResourceId annotation makes possible to use another field as the object's resource id.
Merge pull request #2 from vsavkin/add_resource_id_annotation

Add @ResourceId