recode with callbacks and connect dialog
server uses callbacks (not sleep 1)

various small corrections

removed unused dialog_connect_failed() function

various fixes suggested by Josh Watzman
Merge branch 'master' of http://github.com/sj1100101/vlc-sync

Conflicts:
	sync-client.lua
	sync-server.lua