741 embed widget

Contains work done for #821.