Fix bad testing assumption

This fixes a bad assumption that activities are received as JSON dictionaries from Strava. They are not, they are lists of dictionaries.

Also exposes unit conversion over the REST API.