HUE-1391 [jobbrowser] last line repeated when executing oozie workflow

Improved json retrieval (timeout instead of interval)
Fixed a problem with new lines