feed: flexible note key handling + fixed default value

* Add key function parameter to buildLegend and extractNotes to be able to
  manipulate every legend name - e.g. to implemente case-insensitive legend
  names
* Replace mutable default values with None and replace None in the function
  with the mutable values to avoid parameter interferences between different
  function calls