[API] Added a `__extract_parts` utility method to extract URL parts

    __extract_parts { :foo => true }, [:foo, :bar]
    # => [:foo]
[API] Refactored the "Index Stats" and "Nodes Info" APIs to use the `__extract_parts` utility method