logging improved, auth validation moved out

logWho function added and is common for all methods now. Probably need
to rename it. Initial goal was to log requestor's IP.