renderers: fix decal projector culling

Instead of using stale frustum to cull decal projects in RE_ProjectDecal
(which no longer works now that save/restore viewparms was removed)
and then culling them again with the current frustum; store up to 512
decal projectors per-frame and cull them later using the current frustum.

32-bit bitmasks are used to mark which projectors affect a surface, so in
R_CullDecalProjectors put (up to 32) active decal projectors at the beginning
of array.

512 decal projectors per-frame was picked at random. Might be excess or too low.
renderers: allocate less poly buffers and fix max checks

opengl1/gles used r_maxpolys for range check, but should of used MAX_POLYS.
opengl2 used r_maxpolyverts, but should of used r_maxpolys.

Instead add MAX_POLYBUFFERS 4096, the same value vanilla ET used for MAX_POLYS.
Vanilla cgame only uses a max of 128 poly buffers.
Allowing 16384 (gl1/gles) or 10000 (gl2) seems like a waste.
Merge pull request #87 from zturtleman/fix_decals

renderers: fix decal projector culling
client: added demo seeking and moved client side demo functionality into its own file
made cmake play nice with visual studio
uncrustified the source
libs to newest
Update cl_avi.c
g_config.c: correcting empty lines
ui_main.c: empty lines corrected
Merge pull request #88 from zturtleman/less_polybuffers

renderers: allocate less poly buffers and fix max checks
Revert "renderers: allocate less poly buffers and fix max checks"
Merge pull request #90 from etlegacy/revert-88-less_polybuffers

Reverts "renderers: allocate less poly buffers and fix max checks"
misc: g_gameType pointer variable removed.  Duplicate of sv_gametype.
misc: set sv_gametype variable g_gametype default to "4" like the other variable was.
Merge pull request #91 from ensiform/remove_duplicate_gametype_cvar

misc: g_gameType pointer variable removed.  Duplicate of sv_gametype.
fixed some issues with the console highlighting and typos
renamed variables to be more telling what they actually do
backspace removes the highlighted part of the console text
fixed demo parsing and enabled new demo functionality (checks for legacy mod)