Support for passive ftp and ssl

Also edited some white space and removed php closing tags.