Added resource cache
More work on resources
More work on script eval