web ui: Break labels in host table into multiple lines if they exceed the limit

If host has many labels the display in create job will create
a very wide table pushing the selected hosts way to the right
making it almost impossible to use.

This change will break labels column into separate lines if
labales length exceeded 40 charactes. This will also apply to
Host List page.

Added function to Utils to break string into multiple lines.

Signed-off-by: Julius Gawlas <julius.gawlas@hp.com>