Old api legend

This PR implements the compatibility for mapfish v2 API conversion for legend.  

Each legend in the old api will map to a legend attribute in the new API.  This way we can still map multiple legends.