Added the install-device script

Moved run functions to run-utils.js 
Added install-device script