title: Set listener for store events in a controller
body: <p>I have a controller with a store, a model, and some views.</p>
  
  <p>I need to listen for the <code>beforesync</code> and <code>write</code> event of the store in the controller, but I don't know how to set these listeners in the controllers <code>control</code>-function.</p>
  
  <p>My store looks like this : </p>
  
  <pre><code>Ext.define('DT.store.UsersStore', {
      extend : 'Ext.data.Store',
      model : 'DT.model.User',
      id : 'myStore'
      autoSync : true,
      proxy : {
          type : 'ajax',
          api : {
              read : '/load_entries',
              update : '/update_entry'
          },
          reader : {
              type : 'json',
              root : 'user',
              successProperty : 'success'
          }
      }
  });
  </code></pre>
  
  <p>Now I try to listen to the events in my controller : </p>
  
  <pre><code>...
  init : function () {
      this.control({
          'myStore' : {
              beforesync : this.doSomething,
              write : this.doSomethingElse
          }
      });
  },
  ...
  </code></pre>
  
  <p>My expected result is that the functions will be executed, when the events are fired.
  But at this time nothing happens when they are fired.</p>
  
  <p>How can I get this to work?</p>