decodes json and handle multiple services

fixes #1 the json should decode into a service struct and added
a serviceMap so now there can be multiple services handled by the server