Renamed and cleaned up schemarouter member variables. Removed unused variables.
The schemarouter now uses the router template.