adding connection hash to resource, using it in provider and changing de...

...fault to pass config