CB-6466 created mobile-spec test

Added a test to check that filetransfer.download() automatically creates
any nonexistent directories.

Also removed some unused code