Added flag for server or client message registration.
Merge pull request #84 from floralvikings/message-logging

Added flag for server or client message registration.