Internal transitions

Added capability for internal transitions (target vertex specified as
null ).
Added exports for node.js.