Refactored code_proposals_controller and added some error handling to it.
Refactored code_proposals_controller and added some error handling to it.

eonum/medcodeassist,eonum/medcodeassist,eonum/medcodeassist-frontend,eonum/medcodeassist-frontend,eonum/medcodeassist-frontend,eonum/medcodeassist