Add function for get services

Adding functions for the discovering sevices functionnality.
the authenfication is very simple: we have a database of users wich a json file containing a list of couple user/password