Now InvokeFunction checks for errors in the response body.
Restructuring: Removed DeviceService. Now methods are accessible through Device. Converted FunctionsList to a map[string]*DeviceFunction
Added Variable support.
Fixed bug in GetDeviceVariable. Was trying to send the token in the body.