Add preliminary API support

Now we can use curl to create experiment and upload figures.