2i term regex filter 1.4

Backport the 2i term regex filter to the 1.4 series.

For convenience, the feature/2i-regex-filter-1.4 branch exists in top riak and other repos so this can be built and run with the right dependencies.

/cc @russelldb