Handle input for multiple instances of the same CAD app

e.g. Multiple Rhino, Inventor instances open simultaneously - input currently goes to the last connection as the server doesn’t have a way to distinguish multiple connections.

Onshape currently disconnects when tab is inactive so it works correctly already.

We’ll need to change the OpenAxis 1.0 spec to allow clients to specify target application (PID that must be foregrounded).

Shipped in 1.6 beta - now uses PID where that is available from the target, or an explicit Focused/Unfocused signal (e.g. for browser apps).