move complete elements logic to own file

Conflicts:
	lib/jet/daemon.js
	lib/jet/peer.js
	package.json