Added peer IP configuration options and various minor improvements to session handling and file transfer.