Preliminary router stuff. Incomplete, probably wrong, etc., etc.