Meteor port

Ports to Meteor.
Fixes #5 and #6