Fixed bugs and implemented more logging

- Fixed a couple bugs in link state implementation
- Added logging for entities to aid in verifying Eventual Leader Election
  behavior
- Modified overloads of to_string to avoid linker errors (with a big hack that
  should be fixed)