Merge pull request #2 from traveloop/master

Merging from master
Distances between destinations are now calculated. The app chooses the shortest distance for each leg of the journey. All calculations are done long hand (i.e. without loops and arrays). This is a crime against software and badly needs refactoring.
FIXED: bug caused by incorrect sequence of callbacks
MERGE - front end work and destination reordering