Refactor mock and mock-plugin connection hooks

Move publish-db-connnection-info to mock-plugin
Add set-db-connection-info to mock
Add functional test for set-db-connection-info
Merge pull request #1914 from pmorie/dev/mock_hooks

Merged by openshift-bot