Library: Psync's cleanup was incorrect and could yield a redundant rest
platform: standalone's modifyStartup needs to initialize openPorts
MP tutorial 10: Fix typos in an example (one causing syntax error)
Change "global variable" references where "environment variables" are meant