Backend for an automatic checkin application using iBeacons