avformat: Add AVPROBE_SCORE_EXTENSION define and use where appropriate
avs: Increase magic value score above file extension score

This should fix misdetection of AVS files as AviSynth scripts
when AviSynth support is enabled (Bugzilla #357).