Added ebs resizing support, stdout/stderr redirection for run() and various fixes.