GRB fireball physics: prompt and early emission