1) Added Action Helpers to write logs
2) Updated Error Controller to set reponse
3) Updated comments in common-functions.js