Update ws.y - missing save data

Missing data field in device_save function
Added and fix DeviceClass (isPermanet, offlineTimeout, data)
Added missing attributes for DeviceClass
Merge pull request #4 from dejanpojbic/patch-1

Patch 1. Except I would rather prefer to use pep8-ish naming convention.