Added handling of all legend config options

See also tickets http://tracker.deegree.org/deegree-services/ticket/405 , http://tracker.deegree.org/deegree-services/ticket/366