Translate RegEx in lower levels of $and/$or/$nor selectors

Recurses over $and/$or/$nor selectors to translate RegEx into {$regex,
$options}.

Resolves #1089
Clean up style, update HISTORY.
Merge branch 'pr/1090' into devel