Cleaned up code and added IP address being called.

Logs, now with more detail!
Also, cleaned up code so "console.log" is now the "log" function. Now, I
can add features to logging such as sending to a socket.io connection
without changing a bunch of code. Also added 'item' parameter to log
function so I can also send what IP the action was towards, which will
be useful in sorting through requests.