Tests for module rendrer and new file structure

Should routes maybe be inlined? More readable, and I don't think it will be that big.