I think we have basically the same thing in Browser, so lets use it from there. Browser is a better place since non-SDL stuff might need this too.