Renamed discovery module to filetransfer.

* This was done because the the discovery protocol is fairly
  complicated and the code in that module has some lower level file
  transfer operations implemented in it.
Added docstring to sign_file.
Got filetransfer unit test to work.

* The pain involved was immense.