Integrate code from IGTLRemote

https://github.com/openigtlink/IGTLRemote

The command and query widgets are now integrated in
separate CollapsibleButton frames, with appropriate
changes.