move scripts to bin/
add util functions
Revert "move scripts to bin/"

This reverts commit ce62a44e5ca954511ba398e637d6f43b2f232eb0.
add +x to scripts
remove debug print
add logging
add agent listing script