reformatted the entire rendering system. More modular and reusable components (recursive)

Signed-off-by: Daniel Fagnan <dnfagnan@gmail.com>