Merge pull request #584 from Karang/master

Finalize protocol encryption.
Fix NPE (when no previous value)

Signed-off-by: L5D <L5D@L5D-PC>
Merge pull request #585 from L5D/master

Fix NPE (when no previous value)
Add protocol handlers
Signed-off-by: Karang <arthur.hennequin@free.fr>