Library install: Disable php timeout and stream directly to file

Description

This will minimize the amount of errors we'll get.
See the following for input on how it could be done: http://stackoverflow.com/a/6409531

Some implementations, like WP already have support for this:
```
$response = wp_safe_remote_get($url, array(
'stream' => TRUE,
'filename' => $file,
'timeout' => 60
));
```

Environment

None

Acceptance Criteria

No php timeout when downloading files(only socket timeout).
All H5P plugins should stream the file to the filesystem instead of relying on fitting it into the memory before writing to disk.

Status

Assignee

Frode Petterson

Reporter

Frode Petterson

Labels

None

Funding

None

Code reviewer

Thomas Marstrander

Released

None

Time tracking

3h

Fix versions

Sprint

None

Priority

Medium
Configure