Fixing ACK reception and resynchronization. It seems to work well on motes now, plus the fixes simplify the logic also :)