Adds attribute directive.

This adds an attribute directive that can be used to format the output of attributes based on their value. Currently, it only supports a naively implemented URL filter.

![download](https://cloud.githubusercontent.com/assets/1451007/4258850/a1a14b16-3adb-11e4-9245-3d4ea6242a03.png)