Removed usage of string constants for comp/ev outside of cms.db.

"fail" and "ok" were used throughout the code, now only in
cms.db.submission and cms.db.usertest
Pyflakes run, mostly unused imports.