[Wip] Added support for Embed definition

todo:

* [x] tests