Refactor much of bin/setup osx step.

Much of osx step now using code from https://mths.be/osx.
Update to .shell_control to allow force fallback in query() function.
Update to .shell_control to allow -i (important) flag to show function().
Disable error reporting in Atom.