Fleshed out connect.js example
Implemented a number of types in types.js