\$ is just plain wrong
don't escape "

Ecaping " is unneeded when the url is in single quotes
have OS X open use single quotes too
escape single quotes correctly

It looks retarded, but it works, and apparently it's the correct way.
add a comment near the quote escaping code

Because it's very important.
merge

Conflicts:
	xlib/main.c
Merge pull request #273 from tsudoko/xdg-open

URL opening fixes