finished off pages work goodenough - made routing based on metadata instead of fileinfo fixes #2