Added a dir and index page for api.

Also added a link to the api page on the main page