Misc. fixes

- Fixed double decrement of connection count when exceeding maximum
- Added test for that
- Instantiate server directly (without Guice) to be able to get it's
  listening port
- Use dynamic listening port