Added duration() method to rest
Merge pull request #17 from jjthomas/master

Added duration() to Rest.java