added handshake method to logic.js

Conflicts:
	Server/config/io.js
	app/components/WebRTC/logic.js
	app/components/client/scripts/directives.js
debugging signalling

Conflicts:
	Server/config/io.js
	app/components/client/scripts/directives.js