implement account and device tokens
treat JS reals as ints before sending to pebble
treat JS bools as ints
convert appconfig into a dialog