add custom content to a layer legend
Merge remote-tracking branch 'upstream/master' into Development
CT's WIP codebase as on Oct 22, 2013