Embed code generator and widget construction.