Bug 975136 - Fix mozprocess to accept single function or array of functions for onTimeout/onFinish, update docs;r=wlach