Make ST_GraphAnalysis a table function

* Make ST_GraphAnalysis a table function
* Consolidate all function helpers into one to avoid confusion.

Fixes #29.