Convert ST_ConnectedComponents to a table function

This PR converts ST_ConnectedComponents to a table function. I have tested it in OrbisGIS and it is working. It also makes the graph orientation an optional argument.

This fixes irstv/gdms-topology#14.