Move main logic to bin
Return an error object
Use node-github instead of octonode