Got file transfer from client to server working.

The reason soooo many lines were changed was because of indentation
problems. We need a way to resolve these properly.