mediaproxy: fix empty url & add some tests
Fix a crash when the URL is an empty string and/or the path is empty.
It also adds some tests on the url encode/decode, haven't finished the controller tests yet.
Fix a crash when the URL is an empty string and/or the path is empty.
It also adds some tests on the url encode/decode, haven't finished the controller tests yet.