Modified Device Class and examples

I have added connectTimeout value and replyTimeout value in Device class. Also included new constructor to accept parameters in key-value pair form.
Default connectTimeout value is 10 and replyTimeout value is 600.
Also modified examples according to new Device class.