Added "inline" attribute to debug ostream methods
Fixed sending server's shard count to client