Splits code in EmsCommon#update

Splits update method into several smaller methods according to button
used.
Merge pull request #1237 from petrblaho/refactor-controllers-ems-cloud-update-method-1

Splits code in EmsCommon#update