added locks, expecting failure
fixed name.unlock()
Revert "file transfer seems to work"

This reverts commit caac84a5e502ed09b3eba2edf7b7a0397bfe95f2.

Conflicts:
	server.js
back to functionality
fixed server.js
fix again
merged