Adds a view for editing a drawing. Fixes bugs.

This commit adds a view for editing individual drawings. It also
fixes bugs in the drawing views (e.g. wrong tier ids being inserted).