Backend for Polling (Issue #27)

Hi,
      I have fixed the backend for Issue #27. I have also changed over to REST API. Please review the code.

Thanks.
why are we appending both bugid and param[1]?  param[1] should be resolution, I think we just want to append bugid.