Refactor exceptions in build_file.py and build_file_parser.py to derive
  from a common baseclass and eliminate throwing IOError.
Catch errors from parse errors in the BUILD file and format
  context around the exception.