Massive overhaul, removed unused code, prepared for merge with QuakeLib work
Deleted old unused file
Removed more redundant code