Make sure Index creation never fails, add tests.
Fixed issue with id-return value cast and sharedAdditions in psql, added test for 3way tables.
Add basic tooling test.
Simplified code structure.
Adding some more tests for edge cases in threeway.