improve embed urls

don't save embed urls in the db, generate them on the fly

- idx doesn't work behind a proxy
- idx embeds can't be migrated to new domains