GPII-442:  New processes.js object; moved and improved unit tests.

Moved most of the unit tests that were in nodeprocesses_test.js
for the nodeprocesses add-on to a processes_test.js to test the
new processes.js.  The latter contains the machinery for inspecting
processes, and, specifically, their state.