add Resource::getId()

Tag 0.5.7