Split RPC API into server and agent parts
Add token retrieval method to server RPC API. This is a followup for !449 (merged). Also fixes a bug in agent module where there was no interceptor to inject RPC API.
Add token retrieval method to server RPC API. This is a followup for !449 (merged). Also fixes a bug in agent module where there was no interceptor to inject RPC API.