Refined package imports for scala modules.

Made scala.xml.* import optional and removed scala.util.parsing.json import.