added open and save functions. Created api on the server. Open and save actually load files