Check for working .htaccess via AJAX

Fixes https://github.com/owncloud/core/issues/12650
Merge pull request #12657 from owncloud/ajaxify-htaccess-check

Check for working .htaccess via AJAX