REFACTOR

Significant refactoring, changing cascade to generalized attribute.
added url rewriting functionality.