Removed layer function code in preperation for new code.

Also I moved around a large function that should go at the bottom of
the file instead of the top because it was in the way of things. And
lastly, I added a "filter" variable at the top and an empty
`filterLayer` function that is going to be filled with code soon.
Changed "layers" to "filters"

Also I'm beginning to do the ui section of the layers/filters. I feel
like filters is a better thing to call it because we'll be filtering
nodes out that don't match the criteria of your selected filters.
On/off button for filter
Removing strings.
Set default filter, saved some lines of code.
Beginning of filter working! Not completely though.
More work on filters, but it doesn't work completely yet.

I need to think about the issue for a bit.