Gflags dependency & misc

Adding gflags dependency. tools consolidation to follow separately.

Also, changed the behavior of device query: they now output to LOG(INFO) to be consistent with other logs.

It might be the case that travis does not pass - I'll check the travis script and make it right (not a travis expert).