Add base class for resources to remove duplicate code, minor clean up and fixed reload bug when using relative paths.
Change version to 0.2.