Added memory management feature for reusing events and commands. Patched Rodinia pathfinder tests to null terminate kernel string. Added cache for environment variables