Initial ctrlsock support.

Also add "build" command over ctrlsock