Add client and server port logging

I have added both client and server port numbers as we can see them both being useful in some cases. You will see the functions to obtain port numbers are performed on every call to write_accesslog. It would be less overhead to perform this in the constructor and store as private member variables - if you prefer that I will update the code.
It would be better to make this function template, so that we can call this function for both system_clock and high_resolution_clock. In libstdc++, they are the same, but they are not in libc++.