Added backend sync and socket events for food calculator.