Fix some crashes and get Jason's serial.

Fix a few crashes reported since the last update.
Add a way to get the serial number from Jason's device.