Improve test device object.
Add TLV encoding support.
Merge branch 'master' of https://github.com/01org/liblwm2m