Added configurable timeout for device ready state

I found that 5 seconds was too short for our app, and so I made it
configurable with the option:  device-ready-timeout in seconds.