[ecloud] improvements and some mocking
Merge pull request #1446 from ehowe/master

[ecloud] improvements and mocking