Enhanced Resource. Now it supports localization for loading resources.

[NEW] Added Resource.loadGlyphData().
[NEW] Added Resource.loadVideoData() but not implement and support for
now.
[ENH] Enhanced Resource. Now it supports localization for loading
resources and could load with file extension.
[ENH] Now in every reset() of core/*.lua would call collectgarbage().