Increase the max payload size

As explained in the other PR, I did that :

Increase the max payload size according to the not-yet-documented change for APN (256bytes->2048bytes).
Centralise the value in a constant
Update the test cases for truncation and exceptions