Extracted Service into an interface and it's
own file.
implemented pollServices more fully
implemented register endpoint.