Allow exposing constants

Constants are now exposed in a service registered with a module prefixed name,
this allows client code to know the API url without requiring the user to hard
code it, or use any build system hack for this to happen.