Added DS.when, DSHttpAdapter.when and DSLocalStorageAdapter.when