feat(frontends/lean/server): give preference to prefix matches

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
feat(frontends/lean/server): give preference to prefix matches