Add an option for the memory connector to persist model instances

/to @ritch 

The PR allows the memory connector to take an optional 'file' property in settings, for example:

 var ds = new DataSource({
      connector: 'memory',
      file: file
    });

If file is present, the memory connector tries to load/save the model instances from/to the file.