Refactored postinstall script to emit JSON.parse and JSON strings; refactored input validation code to consider the empty string to be an omitted value. Lots of little cleanups, a lot of which are just subjective style changes and not really materially different.