Added critique grade data api

documentation and flowchart will be updated in the near future (<1 week)
Moved some code around

In future will move the dbName variable from controller scope to the
'api' scope where its assigned during the api init statement…e.g:
var dbName = 'grade_data_api';
var api = require('../../api/grade_api').init(dbName);