Simplify/cleanup device initialization.
Clean up SETTINGS request handling.

Specifically, better variable names, put version information in
properties array.
Not sure why we were clearning the device_agent string here.

This was causing the deviceAgent to vanish if SETTINGS was
issued after a SYNC.
Merge branch 'master' into kronolith_4_2