Expand lines container to support change of color and adding to line

Also added test for not yet correctly implemented last_used_id function
Lines remembers the last used LineId