Added output option back to RunPlugin. Fixed bugs in the build_profile_repo.py script.

BUG=11
R=amoser@google.com

Review URL: https://codereview.appspot.com/110490043