Global dynamics of the Gliese 876 planetary system