Custom forms

This is a pretty straightforward move from putting form definitions in the jsonforms library `ddoc.views.lib.jsonforms` to `ddoc.app_settings.forms`.  This doesn't completely fulfill #283 but is a major part of it.