Redo ST_Graph to fix OutOfMemoryExceptions

When running ST_Graph on a table with over 1 million edges, I was getting
`OutOfMemoryException`s. To fix this problem, I redid `ST_Graph` in pure SQL.

Note that the ordering of nodes is a little different than before.  We assign
ids first to all the first points of the first geometry of each geometry, then
to all the last points of the last geometry of each geometry.

Note that `ST_Graph` requires the input table to have a simple integer primary
key column, and that the edges table produced by `ST_Graph` consists now
of three columns: the primary key (as `EDGE_ID`), `START_NODE` and `END_NODE`.
These may be used to reconstruct the edges table produced by the old `ST_Graph`.

I also moved `ST_Graph` and its unit tests to `h2spatial-ext`. It fits better there.

A big thanks to @nicolas-f for helping me work out this script. It was his idea.

Cf. #225 for performance.