add SLP service discovery support (FATE#316384)
move some code from client to lib

for better testing
test discover_registration_services.rb client
changes

- 3.1.15