Added support for JSON Github requests

Github can send hook events either in json format or in urlencoded format. Ghprb supports only the latter one, which is confusing and not convenient sometimes. This change adds JSON format support.
Close stream or it will cause resource leak.