[CB-4544] Adds a --query flag to query the user for their password when we need it
 - Rewrite the run script for maintenance

  Reviewed By: Bryan Higgins <bhiggins@blackberry.com>
  Tested By: Tracy Li <tli@blackberry.com>