Classlib: Pspawn resolved a function --> pattern prematurely

"event.pattern" would evaluate "pattern" if it's a function,
without passing the event itself as an argument (which is
standard in other patterns that evaluate functions). So now,
we access the function by .at() and evaluate it later,
with a sensible argument.
Change "global variable" references where "environment variables" are meant
MP tutorial 10: Fix typos in an example (one causing syntax error)
platform: standalone's modifyStartup needs to initialize openPorts
Library: Psync's cleanup was incorrect and could yield a redundant rest