Making name_generator also accept the item itself

To allow further customization, allowing a user to directly use the
item in a custom name_generator:

    navigation.name_generator = proc do |name, item|
      "<span>#{item.key}</span>"
    end
Merge pull request #144 from simonc/144-powerful-name-generator

A more powerful name_generator