Log NATS connection events and route register/unregister events with timestamps

- clean up code formatting
- remove extraneous print statements in tests