add basic HTTP caching for flights.json
templates/flight: Use addFlightFromJSON() method
make first addFlightFromJSON synchronous

otherwise flights.getBounds() will fail
Merge branch 'caching'