Implement hashids.js API 0.3.x

Finally, a long time coming.  Needs cleanup.

References #5.