add getResources to haxe.macro.Context

i currently need this for the macro based python backend, but it could be useful in other circumstances too.