api: Fix some broken revision endpoints
Since the removal of some methods in storage (D534), the following
api endpoints were broken: /revision/origin/ and /revision/origin/log.
This commit fixes their implementation by performing the operations
that were previously handled in storage client-side.
Closes T1221