AppVersion is now an int instead of a string.

This was causing JSON unmarshal errors when Devices() was called:

   json: cannot unmarshal number into Go value of type string

This patch fixes that, but this still seems fragile. :/