Make auto-join smarter

some changes to make auto-join smarter.

I am working towards the day you can define your schema and that metadata will allow node-sql to calculate join paths for you in the happy path case.