cockpit: All processes and tests ignore SIGPIPE.

Make sure all processes and tests (except for some testing mock processes) ignore SIGPIPE.

Fixes #716
Lets replace the g_type_init(), g_set_prgname(), and g_test_init() calls here with a call to cockpit_test_init(). Then there won't be any need for calling signal() here directly.