Built up the foundation for Layer class. Also started on the beginning of the layer dialog.