Moved private storage, and factory storage saving

Move back private storage, and factory storage saving to be event driven. They are no longer saved on disconnect. However, also updated the functions for player losing money so that they update factory and private storage.