Refactor OS X launch agents

Launch agents are now easier to understand from the code.