Added ResourcePointer class to handle unloaded resource referencing

Signed-off-by: Irmo van den Berge <bergerkiller@gmail.com>
Merge pull request #492 from bergerkiller/master

Added ResourcePointer class