BETaaS: A Platform for Development and Execution of Machine-to-Machine Applications in the Internet of Things