add new class Permssions start implement upload

* Permissions hols a list with allowed dirs
* Prepare for upload function
* show connections in UI
* more error handling