In discovery client we were moving the process connection state to
initializing when sending subscribe/publish requests for service name
and moving it to up on receiving successful response. This is necessary
only the first time when subscribe/publish requests are sent otherwise
it may seem that the daemon's process connection state keeps on flipping
between initializing and up. Moved Publish() and Subscribe() functions
used by the DSResponseHeader and DSPublishResponse to private since they
are not used by the DiscoveryServiceClient client code.
Closes-Bug: #1386903

Change-Id: I637703b11b24bb7af3d57464e388dc1fa037b0e2
Merge "In discovery client we were moving the process connection state to initializing when sending subscribe/publish requests for service name and moving it to up on receiving successful response. This is necessary only the first time when subscribe/publish requests are sent otherwise it may seem that the daemon's process connection state keeps on flipping between initializing and up. Moved Publish() and Subscribe() functions used by the DSResponseHeader and DSPublishResponse to private since they are not used by the DiscoveryServiceClient client code. Closes-Bug: #1386903"