Use the resource type as the format for COinS.

Closes #960 

### Example 6749121

#### Before
![before](https://cloud.githubusercontent.com/assets/96776/4404130/72213550-44ad-11e4-8647-819fe9a4533a.png)

#### After
![after](https://cloud.githubusercontent.com/assets/96776/4404131/74ab0a9e-44ad-11e4-9896-fb8be36768ed.png)