fix extraneous directory built in docs

for reasons I have not figured out (yet), when sphinx builds the docs it creates a new directory "api" in addition to "_build" etc.  

to work around this either a change needs to be made to the sphinx config so that the api is not built when the docs are built OR as in this pull request add 'api/' to .gitignore. 

please ignore the chmod on setup.py