use common file to init app (for index.php and update.php)
github spout: declare user-agent and more error logging

The GitHub API requires a user agent. This November change broke the Gihut
spout.

See http://developer.github.com/v3/#user-agent-required
Merge pull request #483 from niol/github-user-agent-fix

Github user agent fix