Added file extension validation to AJAX uploader, fixed #216.