Add some utility methods to rebuild CoAP options

Signed-off-by: jvermillard <jvermillard@apache.org>