Convert CAPA inputtype statuses from strings to objects,

in order to simplify css class management and internationalization of status strings (potentially) displayed to the user.

@cpennington @nedbat Does this approach seem reasonable?