Split up canSubmit()

Have a new function resultsToSubmitRecord that converts the prolog
results into gerrit submitrecords.

The resultsToSubmitRecord will be used for testing prolog submit
rules on a live server.

Change-Id: I6ba95ef93634ab3e3872c03fb12de1d1c19c32b5
1 file changed