Kobo: Turn light on/off according to start parameters

Right now this is for Kobo only. I am not sure if Kindle needs something like this too or if it is handled by the original firmware...