Create generic Tray component

This moves a lot of the logic from the individual trays (Add Database,
Query Options, API Url) and into a generic Tray component.

Closes COUCHDB-2401