Renamed resources and fixed loading userdata

Loading userdata now happens first, then the rest is loaded. Also
renamed everything concerning the resources.