Added groovy source code for smart things hub