Add id support, #path method to Repository class
Add support for ID based repository endpoints
Merge #485