Package as a Meteorite Smart Package.
Change constructor API to be more future proof.

API changed to accept either an an onRecord function or an options object that contains an onRecord function.
Fix minor type in readme.md.