extract status loc strings from lifecycles instead of static list in Queue.pm
Limit the custom field values autocompleter, like the others

Default to 10 options, as the other autocompleters do.

Fixes: I#30190
implement RowsPerPage for external CustomFieldValues

This is only for limiting the result set and necessary to make
b22dbbb20d6121a30d502d379c9f34ce61b4fabc work.

$i was already defined but unused.
Fix comment about scrip sort order to match code.
Merge branch '4.2/cfv-external-rowsperpage' into 4.2-trunk
add AfterHeaders callback
Merge branch '4.2/lifecycle-loc-from-config' into 4.2-trunk
Merge branch '4.2/cfv-autocomplete-limit' into 4.2-trunk