Working line tool

Known bugs: tool palette doesn't update to reflect tool changes
and line endpoints cannot be changed (weird behavior for lines)