Textinput: Make option clearBtn work at runtime
Textinput: Remove "ui-input-has-clear" class from wrapper, not element

Also fixes line length issues introduced by previous commit, and adds a test to
make sure clearBtn-related markup is correctly added/removed.