Remove Legend.ts and rename HorizontalLegend -> Legend

Original PR #1417.