Update to new api versions

I needed this library for a project but it wasn't working for me so I decided to fork it.  I wanted to share my changes with you.

I rewrote it in coffeescript, used grunt for automation, and did a little refactoring.