> > Anyway, let me know how you think it should work, perhaps I am missing > something and I am sure it can be improved.
Welcome already comes with default/data which is an API for crud, I do that in PowerGrid plugin, buttons calls default/data passing record id (with signature). No need to write any callback, modals loads <iframe> with data/create/table/ , data/update/table/id etc... Only needs to include JS for modal. I reccommend nyroModal or JqUI dialog. which opens links and images automatically in iframes (posts are made inside the modal)