Refining the IED code: client<->server comms

A little heavy lifting, global variables, BIS_fnc_MP calls, etc....
Not ready for testing yet.