DEvice defines API and service call added. Now device defines are fetche...

...d from DB before registering the device.
deviceOs---> deviceOS (since OS is a abbreviation for operating system and must not like O's - camel casing is not valid for common abbreviation).