PipeCADTool improved.

There have been made three major improvements:
1- Removed the option to close the line.
2- Added a secondPoint state in which we can't stop
the edition (we don't have a real line yet).
3- Check if the first and last point are inside one
of the features of the point layers. These layers
are obtained through preferences, where we define
their names inside a static field.