demux_lavf: avio_flush in DEMUXER_CTRL_RESYNC

This rules out possible avio buffering issues.
Fix lots of bugs in mp_http URL handling

Many instances of "http" were not changed to "mp_http", which made many
aspects of the mp_http protocol handler broken.