Change format of exercises API response

The array of hashes was a really bad idea, this should make it possible
to work with the result in a straight-forward way.