Move bits of legend rendering code into item classes + add rendering test
Automatic creation of composer legend symbol item icon
Creation of legend items for map layers moved to QgsMapLayerLegend
Scale range supported by symbol in QgsLegendSymbolItemV2
Identify renderer's categories/rules by key instead of index
Added support for check states to rule-based renderer
Fix crash in WMS GetLegendGraphics
Fix rendering of WMS Legend Graphics
Fix nested WMS layer data items
Force vector output for preview icon so it avoids cached pixmaps
Make WMS server use QgsLegendRenderer
Fixed bugs with feature count, maintenance of QgsLegendSymbolItemV2
Use QgsLayerTreeModel as a source of data for legend rendering instead of QgsLegendModel

This is work in progress, customization of legend is not working yet
Moved QgsLayerTreeModelLegendNode (+derived classes) to a new file
Support for custom labels in symbol-v2 legend node
New flag to disable checkboxes for legend nodes in layer tree model
Layer tree model support replacement of layer tree + layer node handles removal of layer cleanly
Work in progress: Make composer legend widget work with QgsLayerTreeModel
Legend customization via layer node's custom properties

This allows for reordering, renaming and removal of legend nodes.
Composer either uses default project layer tree (auto-update on)
or customized layer tree (auto-update off).
Fix WMS with custom rule / no labels