Fixed sharing and did some more cleanup

Moved stuff to ListDialog and now finally fixed the sharing bug, where
the onlineListKey was 0 and couldn't be checked locally