Update code for parsing URL into list of _Commons

The old process causes the top level directory name to be repeated at
the start of the directory structure multiple times - once for each
folder deeper than 2 in the hierarchy.  The new process is simpler and
works for all depths in the hierarchy.
Fix order in which _Common pagecodes are called