Starting renderer refactoring and some specs

Ref #16, ref #17