Normal forms for rational difference equations with applications to the global periodicity problem