make the fork command use v3 API calls

The command is still rough in its output, but now it works.
Merge pull request #46 from yanick/fork-command

make the fork command use v3 API calls