Added support for tdAddDevice, tdRemoveDevice and tdGetErrorString

tdAddDevice just adds an empty device with no name, protocol, device code, etc. Will add support for:
-tdSetName
-tdSetModel
-tdSetProtocol
-tdSetDeviceParameter
-tdLearn