Element rendering + Bug fixes

Adds prototypical element rendering, using a push/pop methodology of
moving the graphics context's origin to that of the element to be
rendered.

This commit fixes several bugs left over from the merger of the
streamline branch.