Separate CSS loading from parsing; move parser into a separate file.
VASTLY improved parser.