setted up STI in models
added hierarchy and root method
added z_index relation alias as folder
added hierarchy root methods
handled default folder from history
hierarchy finished base