Setting up IPC messaging in order to register an api after the UI is constructed.
This is the "right way" anyway so that I can later make the render process exist in a second process.