Update index.php

Added IP filters to switch trace and log details based on the environment
Assumes that localhost and 127.0.0.1 are development environments