Completely refactored memory model (now use dynamic allocation).

Added Temperature Sensor device type. Also implemented SoftPwm and most
of Temperature Sensor.
Also refactored language string handling

(see previous change)