Reduce string copies.
Fix extra NUL in string which caused comparison fails.
Cache texture names read from WAD files.
Remove old code.
Start refactoring string tokenization.
Reduce string copies and ignore unwanted tokens.
Minor style fixes.