Reorganized large parts of content parser to include language alternate detection + namespace support.