newui: Calculate the type of each object

Also, separate the view of the object and set its icon according
to its type.

Fix olgabrani/synnefo#51
newui: Improve the objectView

Also, add in inputWithValidationView reset function that is running
when the controller sets its property, resetInput true.

This logic should be applied for every controller that is related with
an inputWithValidationView.