[Ext storage] Now using SFTP stream wrapper from phpseclib

- Upgraded phpseclib to master version (post 0.3.5)
- Now using fopen() on sftp URL for both read and write
- Fixes #4063 

Please make sure to test with a directory full of pics that are at least 2 MB big.
Preview generation should be faster than before.