Add command line parameters for specifying local port, remote host and remote port
send token on error message.
Merge pull request #2 from sbernard31/sendtoken

send token on error message.
Merge pull request #4 from sophokles73/some_fixes

Add command line parameters for specifying local port, remote host and r...
allow write tlv instance + bug fix
Merge pull request #6 from sbernard31/writeinstance

allow write tlv instance + bug fix
Fixed initialization of coap multi_option_t

is_static field wasn't initalized in case of non static option

The fixed valgrind error:

Trying to connect to LWM2M Server at localhost:5683
==23708== Conditional jump or move depends on uninitialised value(s)
==23708==    at 0x8052355: free_multi_option (er-coap-13.c:317)
==23708==    by 0x80525C8: coap_free_header (er-coap-13.c:421)
==23708==    by 0x8052C11: coap_serialize_message (er-coap-13.c:487)
==23708==    by 0x8050C91: transaction_send (transaction.c:260)
==23708==    by 0x8051156: lwm2m_register (registration.c:138)
==23708==    by 0x804ACFE: main (lwm2mclient.c:356)
==23708==
==23708== Conditional jump or move depends on uninitialised value(s)
==23708==    at 0x8052355: free_multi_option (er-coap-13.c:317)
==23708==    by 0x80525D9: coap_free_header (er-coap-13.c:422)
==23708==    by 0x8052C11: coap_serialize_message (er-coap-13.c:487)
==23708==    by 0x8050C91: transaction_send (transaction.c:260)
==23708==    by 0x8051156: lwm2m_register (registration.c:138)
==23708==    by 0x804ACFE: main (lwm2mclient.c:356)
fix weird behave in opaqueToInt function