- fixing document merging

- moving merging logic into document class
- added test
@bryevdv @mattpap please review
Propose:

""" Merge JSON plot objects into this `Document`. 

The plot context ID of this document is replaced by the plot context 
ID of the objects to merge in. 

"""