started documentation of api.js
Added documentation for api.js
Merge branch 'serverDocumentation'