This fixes #5 (improves) how are saved the documents in localStorage. Now is possible to work with more than one API