Added handling of all legend config options

See also ticket http://tracker.deegree.org/deegree-services/ticket/366 .

Handbook adaptation is included.