Localize some variables

There's no reason for them to be global.
Cleanup cl_viewscreen.lua
Merge pull request #672 from robotboy655/local

Localize some variables