Resource

Rewritten Resource class.
(add a list of global resources and handle ids)