check latest version from github and warn user if update is available

It will do a get to github api and parse the json response to get latest version. It then compares it with current version and prompt user for update if applicable.
This regex needs an explanatory comment.