A re-useable library for SmartThings SmartApps