Added a method return a number of osgi services

Note: This change was commited by Chandana. (Required for the registry migration work)

It adds a new function to the osgi script of the server module to return all services matching the provided name.