Security researcher at Facebook accused of unethical practices, got almost fired for finding bug in Instagram