Implemented duration method in Rest.java
Merge pull request #18 from nbrimmer/master

Implemented duration method in Rest.java