MediaFns.cpp: Split BASS code from dllmain.cpp into a separate file.

Marked onTrackEnd() as static. It's only used within MediaFns.cpp,
and it's a BASS callback function.