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.

*** Note: the trays should function exactly as before. ***

Closes COUCHDB-2401