rework text-fields: use ng-class instead of add/remove class

Before we observed and watched value to add or remove class manually. And the user
add to specify the input himself. Now the input is directly in the template and we use
only some ng-directives (mostly ng-class) to update the DOM.

BROKEN: the text-field directive is totally changed