Add scale_factor to settings, and move around some code in tcache.

This adds scale_factor to settings file. It will be used to tell the video system
how much to scale the sprites if a scaler is being used. Also adds some variables
to texture cache in preparation for more scaler work.