Added duration() method to Rest.
Merge pull request #15 from emilykl/master

Fixed issue #4: Added duration() method to Rest.