Automatically reset collection in CODAP

One small issue is that table and graph need to be manually closed before running the next query. I'll try to automate this in a future commit.