Refactor to use as generic module port helper.

Switch to coffeescript.
Update version