Added MultiLayerLossLayer

Original source: dae5300fd2d8362c018ef3bdb87ddbe4acbbab81 by sguada

The merge conflicts are too many, so the original code is adapted and
inserted manually onto the current dev branch.
Added test_multi_label_loss
Adapt MultiLabelLossLayer to current architecture