Use custom context with file_get_contents()

this way we can send a custom user-agent.
verify ssl certificates
remove connect timeout