FIX: Compatibility with CouchDB 1.2

The bug was on attributes management both in the UI and the API.