wait() hangs when executing terminal-notifier.

Fixed the bug with it hanging. I also removed a bunch of other functions I don't use.

I'm not sure if this should be in the vendors directory anymore
considering how half of the original code has been removed. If I decide
to move some notification caching stuff here then I'll probably move it
to shared_helpers or something.