Added LinePathManager and moved LinePath to be able to use it.