fix bug when trying to install via github
use more professional api endpoint
Merge pull request #2 from rory/master

Some cleanups