Check for working .htaccess via AJAX

Fixes https://github.com/owncloud/core/issues/12650

@PVince81 @MorrisJobke Please review.

setting sidebar still properly working? note to self: really fix that bloody hack :see_evil: