Hooked Up The Close Database Button

The entire interface to open, close, and create databases is now
implemented in the browser action popup.
Detached DB Handling Functions From UI

Previously, the new/save/open/loadDB functions were directly updating
the UI on completion and failure.  I've moved that code out of them
and now they just accept success and failure callbacks instead.