Use a better variable name than 'tmp'
Remove excess indentation
send_event_sockets checks for a NULL msg
Remove unused code
Bail on the socket if things fail
Handle only a single reply at a time

Things are still gated by a cookie, but now there's not a buffer to fill
up over time with junk replies.
Kill an annoying warning
Add a timeout for replies

Avoid a deadlock due to a non-responsive event manager.
Remove nasty cookie hack

Since there's only one request out at a time, we don't have to worry
about duplicating cookies. For this, g_random_int should be good enough.
Merge branch 'dev/threaded-uzbl' into mathstuf/next

* dev/threaded-uzbl:
  Remove nasty cookie hack
  Add a timeout for replies
  Kill an annoying warning
  Handle only a single reply at a time
  Bail on the socket if things fail
  Remove unused code
  send_event_sockets checks for a NULL msg
  Remove excess indentation
  Use a better variable name than 'tmp'

Conflicts:
	src/uzbl-core.c