Cloud Code functionality

Added support for cloud code funcitons
Best
Kasper