Mixins for components (ready)

Factoring common code across all components.

Common functions include: destroy, root, data, init, isrendered.
Functions which were too unique to be included in this PR: update, render.