Add #_setAttributes and clean up #setElement.
Merge pull request #20 from braddunbar/view-hooks

Add #_setAttributes and clean up #setElement.