Hide sharing sections in files app when sharing API is disabled

Fixes https://github.com/owncloud/core/issues/9113

There's a checkbox on the admin page called "Allow apps to use the Share API".
When unchecked, the "Sharing*" sections are removed from the files app.

Please review @schiesbn @th3fallen @MorrisJobke @icewind1991