add method to rename devices

This is using legacy REST API, since renameDevice() call does not exist until version 4.2.
I was also thinking about overloading name= but it may be little bit too intrusive.