Lotsa stuff
Switch between standalone and embed mode
Better embed stuff
Added messaging code
Removing junk
Messing around with the selector