Add all hex values of new commands introduced from v1.40 and implementation of setDeviceName 

Hi!

Just for a hello-world goal I decided to implement the setDeviceName.
That made me real familiar with the inner mechanics of the API  :). 

Had some trouble with sending strings as data, but solved it with a helper function:

      def prep_str(self,s):
          return [ord(c) for c in s]

This will yield errors on unicode charracters outside the range of 0-255 (i-e multibyte chars), but that is fine. what we want really.

Also, I added the hex values for all new commands introduced in version 1.40 of the API docs.

- Robin