Add the basic parsing of the imput

Now the input lines will be split each time a formatting code is found.
All formatting will be applied to each piece that is split off. Handling
of closing Color tags is implemented.