Moved stats to api.d, added way to get stats for a specific version