minor
fix promise of deferred, separate events loading

* fixed getting promise from deferred object for browser env when using
jquery
* separate loading of case events to fix loading of large milestones
ps, ms, us commands + some refactorings