Implement ServerDifficulty codec.

Signed-off-by: William Lebel <lebelwilliam@gmail.com>