[SMB] Removing trailing dot in path that samba doesn't seem to like

Also:
- fixed delete action to show error message as notification
- added unit tests for getId() and constructUrl() for SMB module
- fixes #5778

Please review @icewind1991 @DeepDiver1975 @karlitschek