Revision cleanup

Playing around with it for the first time uncovered a couple of errors:
* DB schema != AbstractRevision code
	* switched rev_flags to text_flags to match schema
	* rev_deleted seems unused (looks like rev_flags saved a 'deleted')
	* rev_comment was missing in schema
* AddFlag & removeFlag exists, but changes were not saved to DB
* Variable typo: submittled -> submitted
* Method typo: getErrors -> getErrors()

Change-Id: I4dbefb827645c8ae6910bddb553cbc6e832146ab