Added new api routes latest and range that return list of devices in JSON format.