Creating separate styler module

Moving the styler code out of the layer module to make the layer module easier to work with and compartmentalize the styler.