Removed unused var
Handle unexpandable test strings better
Removed a bunch of globals, deferred parsing RewriteCond until parsed RewriteRule (not implemented yet)