Bug #1, Fix PHP notices, including $USER_TOKEN - fix to USER_TOKEN

* Added _debug() utility function