fixed precedence-related bug
fixed wrong case number for reset-error-code in Device Obj
Fixed: path_location string was deallocated before being sent
added some checks
wrong check-condition
Merge pull request #22 from domedambrosio/liblwm2m_fix

precedence-related bug / wrong case value in device Obj / registration bug