Some connection work.  (WIP)
More work on default provider and refactoring.