COUCHDB-2302: Allow creation of new sections in config view

COUCHDB-2302: Allow creation of new sections in config view

I added a bunch of tests and moved one method from the view to the collection.

I also removed some unused properties, like `this.error` and separated the event-handler from the logic to make the code testable.

Split in multiple logical commits as I first added tests, then refactored and then fixed the actual bug.