Enable non-recursive autocomplete that accepts partial metric names

Building on #48 (specifically, trbs@fa4351d), make sure that if recursive autocomplete is turned off, users who enter partial metric/folder names are still able to see results if that partial name matches an actual metric key.