Move the API docs to an api dir
Update the API docs
Land #4153 to gh-pages

Closes #4153 (not merged to master, so I'm not sure this will
auto-close)

Related to issue #3872