Added logging for server logining in/out
Added logging to api actions