Create sftp.php

Adapter for SFTP using the pure php SSH library phpseclib
Update apps/files_external/appinfo/app.php

Adding support for SFTP
Update apps/files_external/lib/config.php

Adding support for SFTP mounts
Update apps/files_external/lib/sftp.php

Added checks for host keys and added exceptions thrown if constructor fails.
Update apps/files_external/lib/sftp.php

Added a little better exception handling, hopefully making it a little more robust
Update apps/files_external/lib/sftp.php

Added copyright notice
Added phpseclib to files_external as 3rdparty
Update apps/files_external/lib/sftp.php

Updated to using local 3rdparty + added a few missed braces.
Update apps/files_external/lib/sftp.php

Created test() function as per @pull/1031
Update lib/filestorage/common.php

Added function to clean a path
Update apps/files_external/lib/sftp.php

Added cleaning the root path
Merge remote-tracking branch 'upstream/master'

Conflicts:
	apps/files_external/lib/config.php
Update lib/filestorage/common.php

Small cleanup
first style fixes - @samtuke: I added some TODO regarding undefined variables and unreachable code - please review
Add Redirect to getUrlContent fix #1065
Fixed todos: undefined vars and unreachable code
Merge branch 'master' into files_encryption-style-fixes
Merge branch 'master' into files_encryption-style-fixes

Conflicts:
	apps/files_encryption/lib/crypt.php
	apps/files_encryption/lib/keymanager.php
basic WebDAV test in place now
check whether user belongs to the backend before calling getHome()