delete error libs, and add base lib for common functions.

1. import a base lib (some peple used to call it common lib),
   it's a powerful and tiny to use, and it's alse famous becase
   it's a sub-set of Chromium base.
2. use base/logging instead of glog, the output formate info of
   base/logging is better.
3. use base/gflags instead of gflags.
4. delete glog and gflags from third_party.