Fix build to work with npm

Immutable needs to be imported in environments that enforce that. This
changes the build to require Immutable appropriately, and lists it as a
dependency of the node module.