Add more Google Analytics logging

- Add a utility function (NS.Utils.log) that sends information to GA if DEBUG is false, and outputs to the console otherwise
Add event logging all over the place