Initial Ruby version. API mirrors that of original javascript, includes tests.
Merge pull request #5 from elib/master

Initial Ruby version. API mirrors that of original javascript.