feat: Add a switch for layer visibility

This implements toggle switches for switching layer visibility in the layer view.
![layer-visibility-switch](https://cloud.githubusercontent.com/assets/4018006/5592556/9bcb1cf6-9217-11e4-91c8-dd540e1e598a.png)
An invisible layer is hidden from the output image and prevented from accidental drawings.