feat(scripts): add framework to test protractor

Maybe cleaner to share use the options in `spawn` to share the stdin/stdout streams if stdioOnlyOnFailures_ for the whole test process run, instead of checking each time.