Fixed many errors.

Encrypted Packet should be okay now. Many leaks fixed, but some keeps
here.
Added a kind of progress bar for file sending and reception.