HTML-export: Refactor HTML getter method

Process incoming LilyPond source line by line (instead of token by token).
Will be used for further refinements of output