Provides grouping and better formatting for design doc metadata

Fixes COUCHDB-2174.