loadImage and loadSound to accept array or object

Also changed the way resources are store in ResourceManager (object instead of array, so we can lookup by key instead of loop)