Create a foreground layer by default

Issue #99
Save tool settings when switching to eraser

Issue #100