Enable an endpoint to interact with RESTServer object

It's useful to share objects between endpoints, a config dict for example.

If you share endpoints between several RESTServer objects, it's also useful.