added hack to bail out if xrf communication gets off-sync

added handling for battery messages

Signed-off-by: Jukka Laukkanen <jukkalau@gmail.com>