Small updates for latest API
Some examples updated
Added small example of primitive type
Added serialization example
Fixed identation
Updated the configuration to the modern API
Added url mapping example
Moved common "tohex" functionality to centralized location
Fixed handling of errors
Changed shutdown to SD both