add an autoflush parameter to session to allow autoflush behavior
faster deletes. Closes Issue #3 and Pull request #5