Core: add max_determinized_states to query_string and regexp query/filter

This PR applies to master, and it includes another Lucene 5.0.0 snapshot upgrade.

I just plumbed the max_determinized_states through to regexp query, filter and query_string, leaving the default at Lucene's default (10000 states).

Closes #8357