Added ogrinfo.js example.
Also added Geometry.typeToName() method.