Check for working .htaccess via AJAX

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