Improved the detection of whether a layer is clicked or not
+ Implemented detection for layer clicking for the ellipses (open and filled)
* Simplified the code for detecting whether a rectangle was clicked
* Removed duplicate code from LayerPath

Signed-off-by: Mark Kamsma <mark@markkamsma.nl>
Some minor improvements on the GUI

Signed-off-by: Mark Kamsma <mark@markkamsma.nl>