(TK-10) Add register-endpoint function

Add register-endpoint function to core, which now handles
all the parsing of the endpoint information, thus removing it
from each individual service handler.