Add v1 to v2 upgrade script.

Also add licensing to sample client (bin/client.py).

Change-Id: I5184a7ff12a61041ffecb5253e7b41f3120ca816