Add more options for automatic capitalization

Change 'autoCapitalize' property of TextFieldView to accept a variety of
constants instead of a boolean, so that autocapitalization of words and
characters can be used. Backwards-compatibility with boolean values is
retained.

This was originally part of #1021 and adapted from comments there by @dcporter.