Added backend implementation of subject merging.
Added controller for merging subjects