PR Comments - re-factoring

Add new ErrorCode. Use underscore methods. Change error message when incorrect parameter is passed. Validation will be triggered only for appbuilder.js execution.