IDE/AppController: Use anonymous functions for promise callbacks

When we use them with @bound they are attaching themselves into promise chain
and it causes lots of problem.