Moved Run SSH into a more modular format, added lots of debugging and wrapped it with a CloudWatch handler