Add api docs

There is a restructured text docs from which I've built just using the default html builder from sphinx, I've just copy and pasted the html into the api.html template, I've added some a bit of css to make the docs look a bit nicer, but I didn't want any custom html. So we can easily rebuild and update the docs should the doc strings in the action functions get updated.