More work on the resource system. Partially implemented things.

Signed-off-by: HACKhalo2 <hackhalotwo@gmail.com>