Added JavaDocs (including an example ajax call) for restAPI
Added timer to call for new commits every 60 seconds