Properly call error event and reject promises when failing to load data sources.
prefer when over .then
Merge pull request #980 from AnalyticalGraphicsInc/fixDataSourceErrors

Properly call error event and reject promises when data sources fail to load.
fixes #961
format
Merge pull request #981 from hpinkos/pan

Fixes #961: pan disabled in Columbus View