Add missing va_end() to ag_db_select()
Add function ag_app_buttoned_dialog()

This is required to create dialogs with more than one buttons, like Yes/No
dialogs.
Rework chart save procedure

* Fixed some design flows: AgDb should not know about the window
* AgChart now only creates an AgDbSave structure, saving is done through
  AgWindow
Rename Open functionality to Import