Refactored model-building code to one location.
Moved default filters to one location, clean up defaults hash that gets copied for each instance.
Refactored default filter and unfilter functions to clean up defaults options and clarify usage.