Cleaning up a debug statement and fixing bool flags

since it seems with optarg that flags with boolean defaults get special
treatment.
Finally starting to tackle virtual paths again

plus adding a special 404 case for the site index JSON file before I
forget.