@pixelhandler this PR just extracts the existing embedded functionality out, nothing is changed. 
There is some work around embedded belongsTo in another PR.