Reorganize: Move message and logging related funcitonality into the shared lib