Cleanup attributes

This does most of the work of `runtime.attrs` at compile time except
when attributes are being inherited.

[closes #1290]
Add test case for terse attribute
Merge pull request #1295 from visionmedia/cleanup-attrs

Cleanup attributes