agent: Changed the exit-signal from numeric to textual.

Changed exit signal of on_pipe_close in src/agent/cockpittextstream.c from numeric to textual identifier.
Added the implementation of cockpit_strsignal and related test cases.
Updated modules/shell/test-spawn.html.
Updated ProcessError function in modules/shell/spawn.js.
License information needs to be updated.

Fixes #777