cockpit: All processes and tests ignore SIGPIPE.

Make sure all processes and tests (except for some testing mock processes) ignore SIGPIPE.
Replace g_test_init() with cockpit_test_init() in the main of test-machines.

Fixes #716
Closes #766
Reviewed-by: Stef Walter <stefw@redhat.com>