Flush queue on scheduled timer

Often when people are testing they don't make enough api calls to make the SDK flush events. So adding a scheduled timer of say 30s would be quite helpful.