port to Meteor 0.6.5

This version works for me with the new build system in Meteor 0.6.5; I'm using it in an active project that's going into production soon.

Warning, it's **NOT** backwards-compatible. I don't think it's possible ATM to write a version that works both with the old and new APIs, unless you want to play with version detection.