Resource changes

Resources are now similar to objects, constructor adds them to Resources
and Destroy removes them from it.
Moved resource related stuff to it's own directory.