add rest api polling support

again unfinished ```<p>``` markup - is this IDEA adding it?