(TK-10) Use constants for types

Change endpoint saving to use constants for the type of
handler that registered the endpoints. Change tests to use
these same constants.