Allow password-field autocomplete to be configured in settings.

This allows users to use strong passwords stored in browser password
managers, without resorting to workarounds like disabling autocomplete
everywhere.

Change-Id: I5f5e8cd332a5462bbbdc5c26bbfff2f3665016ea