VE-518: Insert content properly when saving

As reported by Rochan. When canceling an edit, the hidden elements in the content area are simply redisplayed (category thumbs, category list, etc), but when saving, the entire content area is emptied and replaced. 

I've written our own version of replacePageContent that takes this into consideration and inserts the new content into the correct place. 
@inez