Regarding offline I tested the photon-starter-app repo a bit and it looks like it already supports disconnections but without optimistic updates:
Here's what I did - killed the network - added a bunch of items to the todo list, which disappeared from the input field but didn't appear in the list - switched network back on, items appeared in the list
I'm curious to see how adding optimistic updates to the mix would work