use aug_callbacks_init in api_test.c
added scroll callbacks to api test
fix memory leak

need to free term_win structures now that they have rect_sets
which allocate memory